mirror of
https://github.com/lbgos/rift-s-linux.git
synced 2026-10-26 18:01:21 +01:00
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.
This commit is contained in:
1 parent
3e1ee24dfd
commit
06eebfb06f
1 file changed
+8
@@ -840,6 +840,14 @@ comp_render_gfx_dispatch(struct render_gfx *rr,
|
||||
layer, //
|
||||
vds); //
|
||||
|
||||
} else if (layer_count == 0) {
|
||||
// Just clear the screen
|
||||
render_gfx_begin_target( //
|
||||
rr, //
|
||||
d->gfx.rtr, //
|
||||
&background_color_idle); //
|
||||
|
||||
render_gfx_end_target(rr);
|
||||
} else {
|
||||
if (fast_path) {
|
||||
U_LOG_W("Wanted fast path but no projection layer, falling back to layer squasher.");
|
||||
|
||||
Reference in new issue
Block a user