mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-02-05 04:06:11 -05:00
correct color depth for 10bit wl_shm color formats
This commit is contained in:
parent
aed7bd0126
commit
6589bc8b02
1 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue