The open source OpenXR runtime
0
fork

Configure Feed

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

c/util: Fixes crash bug when zero layers are committed

Fixes crash in `render_gfx_end_target` with non-compute pipeline path
on android (possibly any platform) when zero layers are committed.

+8
+8
src/xrt/compositor/util/comp_render_gfx.c
··· 840 840 layer, // 841 841 vds); // 842 842 843 + } else if (layer_count == 0) { 844 + // Just clear the screen 845 + render_gfx_begin_target( // 846 + rr, // 847 + d->gfx.rtr, // 848 + &background_color_idle); // 849 + 850 + render_gfx_end_target(rr); 843 851 } else { 844 852 if (fast_path) { 845 853 U_LOG_W("Wanted fast path but no projection layer, falling back to layer squasher.");