2
0
Эх сурвалжийг харах

Fix uninitialized Vulkan sampler hash.

Jonathan Young 6 жил өмнө
parent
commit
3ea69999e6

+ 1 - 0
src/renderer_vk.cpp

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