From 2f07027386b8962e92c3e1f953178f669d1ef51d Mon Sep 17 00:00:00 2001 From: Bart Muzzin Date: Mon, 6 Jun 2016 15:29:05 -0400 Subject: [PATCH] Always write pPropertyCount value when returning properties. Refs #279 --- renderdoc/driver/vulkan/vk_core.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/renderdoc/driver/vulkan/vk_core.cpp b/renderdoc/driver/vulkan/vk_core.cpp index 3726e36e6..1633b5f95 100644 --- a/renderdoc/driver/vulkan/vk_core.cpp +++ b/renderdoc/driver/vulkan/vk_core.cpp @@ -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));