mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-11-22 07:02:28 +00:00
output: check wlr_renderer_begin return value
This commit is contained in:
parent
a541c9510a
commit
45159f8708
@ -157,7 +157,9 @@ static bool output_attach_empty_back_buffer(struct wlr_output *output,
|
||||
output_pending_resolution(output, state, &width, &height);
|
||||
|
||||
struct wlr_renderer *renderer = output->renderer;
|
||||
wlr_renderer_begin(renderer, width, height);
|
||||
if (!wlr_renderer_begin(renderer, width, height)) {
|
||||
return false;
|
||||
}
|
||||
wlr_renderer_clear(renderer, (float[]){0, 0, 0, 0});
|
||||
wlr_renderer_end(renderer);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user