mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-24 23:46:41 +00:00
Always write pPropertyCount value when returning properties. Refs #279
This commit is contained in:
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user