From 05f292874df8b29a0f3b60d49d39f4269a2b2ca8 Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Tue, 22 Mar 2022 12:46:42 +0100 Subject: [PATCH] opengl: fix swizzle The four components are, in order: x, y, z, w. The U and V values are the first and second components in the second texture. Fixes #26735 --- modules/video_output/opengl/sampler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/video_output/opengl/sampler.c b/modules/video_output/opengl/sampler.c index 09541d213e..80bd1f1bed 100644 --- a/modules/video_output/opengl/sampler.c +++ b/modules/video_output/opengl/sampler.c @@ -443,7 +443,7 @@ opengl_init_swizzle(struct vlc_gl_sampler *sampler, else { swizzle_per_tex[0] = "x"; - swizzle_per_tex[1] = "xw"; + swizzle_per_tex[1] = "xy"; } } else if (desc->plane_count == 1)