scene: check wlr_renderer_begin return value

This commit is contained in:
Simon Ser 2022-01-12 18:37:21 +01:00 committed by Simon Zeni
parent 45159f8708
commit 48541d2f2e

View file

@ -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);