mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
vk/extensions: count needs to be <= number of extensions
This commit is contained in:
parent
0c2d476935
commit
126ade0023
1 changed files with 1 additions and 1 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue