correct color depth for 10bit wl_shm color formats

This commit is contained in:
DerVerruckteFuchs 2020-08-01 18:49:39 -04:00
parent aed7bd0126
commit 6589bc8b02

View file

@ -50,7 +50,7 @@ static const struct wlr_gles2_pixel_format formats[] = {
}, },
{ {
.wl_format = WL_SHM_FORMAT_XRGB2101010, .wl_format = WL_SHM_FORMAT_XRGB2101010,
.depth = 24, .depth = 30,
.bpp = 32, .bpp = 32,
.gl_format = GL_BGRA_EXT, .gl_format = GL_BGRA_EXT,
.gl_type = GL_UNSIGNED_BYTE, .gl_type = GL_UNSIGNED_BYTE,
@ -58,7 +58,7 @@ static const struct wlr_gles2_pixel_format formats[] = {
}, },
{ {
.wl_format = WL_SHM_FORMAT_XBGR2101010, .wl_format = WL_SHM_FORMAT_XBGR2101010,
.depth = 24, .depth = 30,
.bpp = 32, .bpp = 32,
.gl_format = GL_RGBA, .gl_format = GL_RGBA,
.gl_type = GL_UNSIGNED_BYTE, .gl_type = GL_UNSIGNED_BYTE,