diff options
author | emersion <contact@emersion.fr> | 2018-03-21 08:53:36 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2018-03-21 08:53:36 +0100 |
commit | 8207f0f081d6b0e1c493366614be836c392c34fd (patch) | |
tree | dbb0c127513c8f001bfd0f2b6ba3790ba84a0213 /render/gles2 | |
parent | cc5ef1d2ffab1d7c0caaf1aa606637791ddf5ada (diff) |
render/gles2: use gles2_pixel_format::has_alpha for shader selection
Diffstat (limited to 'render/gles2')
-rw-r--r-- | render/gles2/renderer.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/render/gles2/renderer.c b/render/gles2/renderer.c index 2d05932c..9403c0ed 100644 --- a/render/gles2/renderer.c +++ b/render/gles2/renderer.c @@ -120,8 +120,7 @@ static bool gles2_render_texture_with_matrix( GLuint prog = renderer->shaders.tex_rgba; if (texture->target == GL_TEXTURE_EXTERNAL_OES) { prog = renderer->shaders.tex_ext; - } else if (texture->pixel_format->wl_format == WL_SHM_FORMAT_XRGB8888 || - texture->pixel_format->wl_format == WL_SHM_FORMAT_XBGR8888) { + } else if (!texture->pixel_format->has_alpha) { prog = renderer->shaders.tex_rgbx; } |