diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/vulkan/wsi/wsi_common_x11.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vulkan/wsi/wsi_common_x11.c b/src/vulkan/wsi/wsi_common_x11.c index 5f29ead3f23..e7a7da19285 100644 --- a/src/vulkan/wsi/wsi_common_x11.c +++ b/src/vulkan/wsi/wsi_common_x11.c @@ -1398,7 +1398,7 @@ x11_surface_create_swapchain(VkIcdSurfaceBase *icd_surface, } } - for (int i = 0; i < 2; i++) + for (int i = 0; i < ARRAY_SIZE(modifiers); i++) vk_free(pAllocator, modifiers[i]); *swapchain_out = &chain->base; @@ -1409,7 +1409,7 @@ fail_init_images: x11_image_finish(chain, pAllocator, &chain->images[j]); fail_register: - for (int i = 0; i < 2; i++) + for (int i = 0; i < ARRAY_SIZE(modifiers); i++) vk_free(pAllocator, modifiers[i]); xcb_unregister_for_special_event(chain->conn, chain->special_event); |