mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 12:55:58 +01:00
output: check wlr_renderer_begin return value
This commit is contained in:
parent
a541c9510a
commit
45159f8708
1 changed files with 3 additions and 1 deletions
|
@ -157,7 +157,9 @@ static bool output_attach_empty_back_buffer(struct wlr_output *output,
|
||||||
output_pending_resolution(output, state, &width, &height);
|
output_pending_resolution(output, state, &width, &height);
|
||||||
|
|
||||||
struct wlr_renderer *renderer = output->renderer;
|
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_clear(renderer, (float[]){0, 0, 0, 0});
|
||||||
wlr_renderer_end(renderer);
|
wlr_renderer_end(renderer);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue