diff options
author | emersion <contact@emersion.fr> | 2018-01-26 23:13:41 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2018-01-26 23:13:41 +0100 |
commit | f34a1b75ebd9dbebf4fb9c2cf34d878fce902c03 (patch) | |
tree | 6717658e13d2145028aa578a71e49be50c75cf25 /render/gles2/pixel_format.c | |
parent | 4fa90b05119720a67ccb63cd89246abdb4abf4ea (diff) |
render/gles2: use format bpp when reading pixels
Diffstat (limited to 'render/gles2/pixel_format.c')
-rw-r--r-- | render/gles2/pixel_format.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/render/gles2/pixel_format.c b/render/gles2/pixel_format.c index 9cc75923..a544077b 100644 --- a/render/gles2/pixel_format.c +++ b/render/gles2/pixel_format.c @@ -25,12 +25,16 @@ struct pixel_format formats[] = { }, { .wl_format = WL_SHM_FORMAT_XBGR8888, + .depth = 24, + .bpp = 32, .gl_format = GL_RGBA, .gl_type = GL_UNSIGNED_BYTE, .shader = &shaders.rgbx }, { .wl_format = WL_SHM_FORMAT_ABGR8888, + .depth = 32, + .bpp = 32, .gl_format = GL_RGBA, .gl_type = GL_UNSIGNED_BYTE, .shader = &shaders.rgba |