Browse Source

vulkan: fix a consistency issue with texture samplers

Sasha Szpakowski 1 year ago
parent
commit
20ffe94349
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/modules/graphics/vulkan/Texture.cpp

+ 1 - 1
src/modules/graphics/vulkan/Texture.cpp

@@ -267,7 +267,7 @@ void Texture::setSamplerState(const SamplerState &s)
 {
 {
 	love::graphics::Texture::setSamplerState(s);
 	love::graphics::Texture::setSamplerState(s);
 
 
-	textureSampler = vgfx->getCachedSampler(s);
+	textureSampler = vgfx->getCachedSampler(samplerState);
 }
 }
 
 
 VkImageLayout Texture::getImageLayout() const
 VkImageLayout Texture::getImageLayout() const