From 45159f8708a470cb67281288ca32468fee47cea6 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 12 Jan 2022 18:37:09 +0100 Subject: output: check wlr_renderer_begin return value --- types/output/render.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- cgit v1.2.3