From 126ade002373825ff9e6db0f6ee2d4f7f6579f13 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Tue, 1 Sep 2015 12:23:48 -0700 Subject: [PATCH] vk/extensions: count needs to be <= number of extensions --- src/vulkan/anv_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- 2.30.2