Fix VkDescriptorPoolCreateInfo.poolSizeCount

This caused a read past the array end on anv.
This commit is contained in:
Simon Ser 2021-05-04 18:34:11 +02:00
parent b6f5471b62
commit a4f3a19480

View file

@ -990,7 +990,7 @@ retry:
.pNext = nullptr,
.flags = 0,
.maxSets = k_nMaxSets,
.poolSizeCount = 4,
.poolSizeCount = sizeof(descriptorPoolSize) / sizeof(descriptorPoolSize[0]),
.pPoolSizes = descriptorPoolSize
};