mirror of
https://code.videolan.org/videolan/vlc
synced 2024-10-03 01:31:53 +02:00
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:
parent
05f292874d
commit
aa5bec3b49
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user