diff options
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; } |