The open source OpenXR runtime
0
fork

Configure Feed

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

c/main: Fix warning

authored by

Jakob Bornecrantz and committed by
Jakob Bornecrantz
086a702b 86ae6a5b

+6 -1
+6 -1
src/xrt/compositor/main/comp_renderer.c
··· 1327 1327 mirror_to_debug_gui_do_blit(struct comp_renderer *r) 1328 1328 { 1329 1329 struct vk_bundle *vk = &r->c->base.vk; 1330 + VkResult ret; 1330 1331 1331 1332 struct vk_image_readback_to_xf *wrap = NULL; 1332 1333 ··· 1436 1437 os_mutex_unlock(&vk->cmd_pool_mutex); 1437 1438 1438 1439 // Waits for command to finish. 1439 - vk_submit_cmd_buffer(vk, cmd); 1440 + ret = vk_submit_cmd_buffer(vk, cmd); 1441 + if (ret != VK_SUCCESS) { 1442 + //! @todo Better handling of error? 1443 + COMP_ERROR(r->c, "Failed to mirror image"); 1444 + } 1440 1445 1441 1446 wrap->base_frame.source_timestamp = wrap->base_frame.timestamp = 1442 1447 r->c->frame.rendering.predicted_display_time_ns;