mirror of
https://code.videolan.org/videolan/vlc
synced 2024-09-04 09:11:33 +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
@ -434,18 +434,10 @@ opengl_init_swizzle(struct vlc_gl_sampler *sampler,
|
|||||||
if (desc->plane_count == 3)
|
if (desc->plane_count == 3)
|
||||||
swizzle_per_tex[0] = swizzle_per_tex[1] = swizzle_per_tex[2] = "r";
|
swizzle_per_tex[0] = swizzle_per_tex[1] = swizzle_per_tex[2] = "r";
|
||||||
else if (desc->plane_count == 2)
|
else if (desc->plane_count == 2)
|
||||||
{
|
|
||||||
if (oneplane_texfmt == GL_RED)
|
|
||||||
{
|
{
|
||||||
swizzle_per_tex[0] = "r";
|
swizzle_per_tex[0] = "r";
|
||||||
swizzle_per_tex[1] = "rg";
|
swizzle_per_tex[1] = "rg";
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
swizzle_per_tex[0] = "x";
|
|
||||||
swizzle_per_tex[1] = "xy";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else if (desc->plane_count == 1)
|
else if (desc->plane_count == 1)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user