diff options
author | Simon Ser <contact@emersion.fr> | 2022-01-12 18:30:59 +0100 |
---|---|---|
committer | Simon Zeni <simon@bl4ckb0ne.ca> | 2022-11-15 15:50:19 +0000 |
commit | 23540b557931bddc5053f363fa38d87e3254a78d (patch) | |
tree | cb6e8e53e72e49432b53254cb1045b42763c0a7b /render/gles2 | |
parent | 4a70172e267b52c20b8bb25b74347b25407c7247 (diff) |
render: allow wlr_renderer_impl.begin to fail
Make it return a bool to indicate success/failure. Adapt the
various implementations to check errors.
Diffstat (limited to 'render/gles2')
-rw-r--r-- | render/gles2/renderer.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/render/gles2/renderer.c b/render/gles2/renderer.c index 8d060150..ee4f60e8 100644 --- a/render/gles2/renderer.c +++ b/render/gles2/renderer.c @@ -198,7 +198,7 @@ static bool gles2_bind_buffer(struct wlr_renderer *wlr_renderer, return true; } -static void gles2_begin(struct wlr_renderer *wlr_renderer, uint32_t width, +static bool gles2_begin(struct wlr_renderer *wlr_renderer, uint32_t width, uint32_t height) { struct wlr_gles2_renderer *renderer = gles2_get_renderer_in_context(wlr_renderer); @@ -219,6 +219,8 @@ static void gles2_begin(struct wlr_renderer *wlr_renderer, uint32_t width, // for users to sling matricies themselves pop_gles2_debug(renderer); + + return true; } static void gles2_end(struct wlr_renderer *wlr_renderer) { |