render/gles2: use gles2_pixel_format::has_alpha for shader selection

master
emersion 7 years ago
parent cc5ef1d2ff
commit 8207f0f081
No known key found for this signature in database
GPG Key ID: 0FDE7BE0E88F5E48

@ -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;
}

Loading…
Cancel
Save