The open source OpenXR runtime
0
fork

Configure Feed

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

a/vk: Add an internal check to ensure graphics buffer ref worked.

+6
+6
src/xrt/auxiliary/vk/vk_image_allocator.c
··· 313 313 // Ensure that all handles are consumed or none are. 314 314 xrt_graphics_buffer_handle_t buf = u_graphics_buffer_ref(native_images[i].handle); 315 315 316 + if (!xrt_graphics_buffer_is_valid(buf)) { 317 + U_LOG_E("Could not ref/duplicate graphics buffer handle"); 318 + ret = VK_ERROR_INITIALIZATION_FAILED; 319 + break; 320 + } 321 + 316 322 ret = vk_create_image_from_native( // 317 323 vk, // vk_bundle 318 324 xscci, // info