mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-29 18:08:29 +00: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:
parent
3e1ee24dfd
commit
06eebfb06f
|
@ -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.");
|
||||
|
|
Loading…
Reference in a new issue