diff options
author | Simon Ser <contact@emersion.fr> | 2021-02-16 19:34:02 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-02-23 16:09:26 +0100 |
commit | b54ef3372d5c6f01b97b26cf449617122a628e8a (patch) | |
tree | 89787948911f5876841d32e1ba559a36ad34107e /render/gles2 | |
parent | 00bf6674b35bc4f3a5adaceaebab33f734b2ecd9 (diff) |
render: use DRM formats in wlr_renderer_read_pixels
Diffstat (limited to 'render/gles2')
-rw-r--r-- | render/gles2/renderer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/render/gles2/renderer.c b/render/gles2/renderer.c index 68d53998..437a606a 100644 --- a/render/gles2/renderer.c +++ b/render/gles2/renderer.c @@ -467,14 +467,14 @@ static uint32_t gles2_preferred_read_format( } static bool gles2_read_pixels(struct wlr_renderer *wlr_renderer, - enum wl_shm_format wl_fmt, uint32_t *flags, uint32_t stride, + uint32_t drm_format, uint32_t *flags, 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 = gles2_get_renderer_in_context(wlr_renderer); const struct wlr_gles2_pixel_format *fmt = - get_gles2_format_from_drm(convert_wl_shm_format_to_drm(wl_fmt)); + get_gles2_format_from_drm(drm_format); if (fmt == NULL) { wlr_log(WLR_ERROR, "Cannot read pixels: unsupported pixel format"); return false; |