Always write pPropertyCount value when returning properties. Refs #279

This commit is contained in:
Bart Muzzin
2016-06-07 10:19:16 -07:00
committed by baldurk
parent 4e7276165a
commit 2f07027386
+3
View File
@@ -644,6 +644,9 @@ static VkResult FillPropertyCountAndList(const VkExtensionProperties *src, uint3
{
uint32_t dstSpace = *dstCount;
// return the number of extensions.
*dstCount = numExts;
// copy as much as there's space for, up to how many there are
memcpy(dstProps, src, sizeof(VkExtensionProperties) * RDCMIN(numExts, dstSpace));