diff options
author | Simon Ser <contact@emersion.fr> | 2021-02-16 19:12:04 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-02-23 16:09:26 +0100 |
commit | fab396f1494f6ed24d9ad14f1bbcda9d7f616c39 (patch) | |
tree | 321d4684f900ae44238cd37e372c77b6dac4ee48 /render/gles2/renderer.c | |
parent | 5d6d76c61fa6403260eacb10f0b99ff2ab919b3a (diff) |
render/gles2: convert format table to DRM formats
Diffstat (limited to 'render/gles2/renderer.c')
-rw-r--r-- | render/gles2/renderer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/render/gles2/renderer.c b/render/gles2/renderer.c index 4dafb328..cdf2c8b2 100644 --- a/render/gles2/renderer.c +++ b/render/gles2/renderer.c @@ -14,6 +14,7 @@ #include <wlr/types/wlr_linux_dmabuf_v1.h> #include <wlr/util/log.h> #include "render/gles2.h" +#include "render/shm_format.h" static const GLfloat verts[] = { 1, 0, // top right @@ -455,7 +456,7 @@ static enum wl_shm_format gles2_preferred_read_format( const struct wlr_gles2_pixel_format *fmt = get_gles2_format_from_gl(gl_format, gl_type, alpha_size > 0); if (fmt != NULL) { - return fmt->wl_format; + return convert_drm_format_to_wl_shm(fmt->drm_format); } if (renderer->exts.read_format_bgra_ext) { |