From 23540b557931bddc5053f363fa38d87e3254a78d Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 12 Jan 2022 18:30:59 +0100 Subject: render: allow wlr_renderer_impl.begin to fail Make it return a bool to indicate success/failure. Adapt the various implementations to check errors. --- include/wlr/render/interface.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/wlr/render') diff --git a/include/wlr/render/interface.h b/include/wlr/render/interface.h index ed7c4c8f..a8ed5825 100644 --- a/include/wlr/render/interface.h +++ b/include/wlr/render/interface.h @@ -22,7 +22,7 @@ struct wlr_fbox; struct wlr_renderer_impl { bool (*bind_buffer)(struct wlr_renderer *renderer, struct wlr_buffer *buffer); - void (*begin)(struct wlr_renderer *renderer, uint32_t width, + bool (*begin)(struct wlr_renderer *renderer, uint32_t width, uint32_t height); void (*end)(struct wlr_renderer *renderer); void (*clear)(struct wlr_renderer *renderer, const float color[static 4]); -- cgit v1.2.3