opengl: simplify swizzle

The commit ca7d2ea4b6 introduced an xyzw
swizzle, whereas the previous code was using an rgba swizzle. No other
location used the xyzw swizzle for texture so unify and use rgba
everywhere.

Refs #26735
This commit is contained in:
Romain Vimont 2022-03-22 12:55:07 +01:00 committed by Jean-Baptiste Kempf
parent 05f292874d
commit aa5bec3b49
1 changed files with 2 additions and 10 deletions

View File

@ -435,16 +435,8 @@ opengl_init_swizzle(struct vlc_gl_sampler *sampler,
swizzle_per_tex[0] = swizzle_per_tex[1] = swizzle_per_tex[2] = "r";
else if (desc->plane_count == 2)
{
if (oneplane_texfmt == GL_RED)
{
swizzle_per_tex[0] = "r";
swizzle_per_tex[1] = "rg";
}
else
{
swizzle_per_tex[0] = "x";
swizzle_per_tex[1] = "xy";
}
swizzle_per_tex[0] = "r";
swizzle_per_tex[1] = "rg";
}
else if (desc->plane_count == 1)
{