summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2015-09-01 12:23:48 -0700
committerJason Ekstrand <[email protected]>2015-09-01 12:28:50 -0700
commit126ade002373825ff9e6db0f6ee2d4f7f6579f13 (patch)
tree0861ee22a7eb096760289a8f376562a8401da11e
parent0c2d4769354752f7e8df9b0819ef3e444df914bc (diff)
vk/extensions: count needs to be <= number of extensions
-rw-r--r--src/vulkan/anv_device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vulkan/anv_device.c b/src/vulkan/anv_device.c
index 57b2681a2d1..19f3c1ed3cc 100644
--- a/src/vulkan/anv_device.c
+++ b/src/vulkan/anv_device.c
@@ -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));