aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--types/output/render.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/types/output/render.c b/types/output/render.c
index 13d714e1..b0322578 100644
--- a/types/output/render.c
+++ b/types/output/render.c
@@ -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);