Przeglądaj źródła

Fix uninitialized Vulkan sampler hash.

Jonathan Young 6 lat temu
rodzic
commit
3ea69999e6
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      src/renderer_vk.cpp

+ 1 - 0
src/renderer_vk.cpp

@@ -3275,6 +3275,7 @@ VK_IMPORT_DEVICE
 		VkSampler getSampler(uint32_t _samplerFlags, uint32_t _mipLevels)
 		{
 			bx::HashMurmur2A hash;
+			hash.begin();
 			hash.add(_samplerFlags);
 			hash.add(_mipLevels);
 			uint32_t hashKey = hash.end();