소스 검색

vulkan: fix a consistency issue with texture samplers

Sasha Szpakowski 1 년 전
부모
커밋
20ffe94349
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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