The open source OpenXR runtime
0
fork

Configure Feed

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

c/render: Make it safe to call comp_resources_close in more cases

Fixes #139

+7 -1
+7 -1
src/xrt/compositor/render/comp_resources.c
··· 680 680 void 681 681 comp_resources_close(struct comp_resources *r) 682 682 { 683 - assert(r->vk != NULL); 683 + // We were never initialised or already closed, always safe to call this function. 684 + if (r->vk == NULL) { 685 + return; 686 + } 684 687 685 688 struct vk_bundle *vk = r->vk; 686 689 ··· 710 713 DF(Memory, r->distortion.device_memories[i]); 711 714 } 712 715 comp_buffer_close(vk, &r->compute.ubo); 716 + 717 + // Finally forget about the vk bundle. We do not own it! 718 + r->vk = NULL; 713 719 }