Fix uninitialized Vulkan sampler hash.

This commit is contained in:
Jonathan Young
2019-09-05 20:23:14 +10:00
committed by Бранимир Караџић
parent 0c5cb8ee5f
commit 3ea69999e6

View File

@@ -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();