vk/extensions: count needs to be <= number of extensions
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 1 Sep 2015 19:23:48 +0000 (12:23 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 1 Sep 2015 19:28:50 +0000 (12:28 -0700)
src/vulkan/anv_device.c

index 57b2681a2d1426b31b42df1fafba215bfafc40bb..19f3c1ed3cccd8a6010005e77901fac1ab161020 100644 (file)
@@ -646,7 +646,7 @@ VkResult anv_GetGlobalExtensionProperties(
       return VK_SUCCESS;
    }
 
-   assert(*pCount < ARRAY_SIZE(global_extensions));
+   assert(*pCount <= ARRAY_SIZE(global_extensions));
 
    *pCount = ARRAY_SIZE(global_extensions);
    memcpy(pProperties, global_extensions, sizeof(global_extensions));