diff options
author | Simon Ser <contact@emersion.fr> | 2022-10-03 11:44:21 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2022-10-04 09:15:19 +0200 |
commit | 6832ae14aaa659929ea13057616db34536f7f724 (patch) | |
tree | 0cf919203e2e27e4965dd851b3e9c97ee42e4c3e /render/gles2 | |
parent | 50cc1ef4d3791d86854dd83c15fff17e5ea1a5b6 (diff) |
render: drop wlr_renderer_read_pixels() flags
These are unused.
Diffstat (limited to 'render/gles2')
-rw-r--r-- | render/gles2/renderer.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/render/gles2/renderer.c b/render/gles2/renderer.c index c00a7f51..354584e5 100644 --- a/render/gles2/renderer.c +++ b/render/gles2/renderer.c @@ -415,7 +415,7 @@ static uint32_t gles2_preferred_read_format( } static bool gles2_read_pixels(struct wlr_renderer *wlr_renderer, - uint32_t drm_format, uint32_t *flags, uint32_t stride, + uint32_t drm_format, uint32_t stride, uint32_t width, uint32_t height, uint32_t src_x, uint32_t src_y, uint32_t dst_x, uint32_t dst_y, void *data) { struct wlr_gles2_renderer *renderer = @@ -464,10 +464,6 @@ static bool gles2_read_pixels(struct wlr_renderer *wlr_renderer, pop_gles2_debug(renderer); - if (flags != NULL) { - *flags = 0; - } - return glGetError() == GL_NO_ERROR; } |