mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 04:45:58 +01:00
scene: check wlr_renderer_begin return value
This commit is contained in:
parent
45159f8708
commit
48541d2f2e
1 changed files with 5 additions and 1 deletions
|
@ -1538,7 +1538,11 @@ bool wlr_scene_output_commit(struct wlr_scene_output *scene_output) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
wlr_renderer_begin(renderer, output->width, output->height);
|
if (!wlr_renderer_begin(renderer, output->width, output->height)) {
|
||||||
|
pixman_region32_fini(&damage);
|
||||||
|
wlr_output_rollback(output);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
pixman_region32_t background;
|
pixman_region32_t background;
|
||||||
pixman_region32_init(&background);
|
pixman_region32_init(&background);
|
||||||
|
|
Loading…
Reference in a new issue