From 6589bc8b022a8a74ec5f8ca4067b84db36cbe70a Mon Sep 17 00:00:00 2001 From: DerVerruckteFuchs Date: Sat, 1 Aug 2020 18:49:39 -0400 Subject: [PATCH] correct color depth for 10bit wl_shm color formats --- render/gles2/pixel_format.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/render/gles2/pixel_format.c b/render/gles2/pixel_format.c index 05a2861f4..db28a552f 100644 --- a/render/gles2/pixel_format.c +++ b/render/gles2/pixel_format.c @@ -50,7 +50,7 @@ static const struct wlr_gles2_pixel_format formats[] = { }, { .wl_format = WL_SHM_FORMAT_XRGB2101010, - .depth = 24, + .depth = 30, .bpp = 32, .gl_format = GL_BGRA_EXT, .gl_type = GL_UNSIGNED_BYTE, @@ -58,7 +58,7 @@ static const struct wlr_gles2_pixel_format formats[] = { }, { .wl_format = WL_SHM_FORMAT_XBGR2101010, - .depth = 24, + .depth = 30, .bpp = 32, .gl_format = GL_RGBA, .gl_type = GL_UNSIGNED_BYTE,