Browse Source

metal: fix Texture:setWrap/setFilter

Alex Szpakowski 4 years ago
parent
commit
e1d5f3b010
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/modules/graphics/metal/Texture.mm

+ 3 - 0
src/modules/graphics/metal/Texture.mm

@@ -254,6 +254,9 @@ void Texture::readbackImageData(love::image::ImageData *imagedata, int slice, in
 
 void Texture::setSamplerState(const SamplerState &s)
 { @autoreleasepool {
+	// Base class does common validation and assigns samplerState.
+	love::graphics::Texture::setSamplerState(s);
+
 	sampler = Graphics::getInstance()->getCachedSampler(s);
 }}