The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

a/vk: Fix VkImage leak in vk_create_image_from_native when there's a size mismatch

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2587>

+1
+1
src/xrt/auxiliary/vk/vk_helpers.c
··· 1247 1247 VK_ERROR(vk, "size mismatch, exported %" PRIu64 " but requires %" PRIu64, image_native->size, 1248 1248 requirements.size); 1249 1249 if (!debug_get_bool_option_vk_ignore_memory_size_mismatch()) { 1250 + vk->vkDestroyImage(vk->device, image, NULL); 1250 1251 return VK_ERROR_OUT_OF_DEVICE_MEMORY; 1251 1252 } 1252 1253 } else if (requirements.size < image_native->size) {