Răsfoiți Sursa

vulkan: fix a consistency issue with texture samplers

Sasha Szpakowski 1 an în urmă
părinte
comite
20ffe94349
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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);
 
-	textureSampler = vgfx->getCachedSampler(s);
+	textureSampler = vgfx->getCachedSampler(samplerState);
 }
 
 VkImageLayout Texture::getImageLayout() const