summaryrefslogtreecommitdiffstats
path: root/video/out/gl_video_shaders.glsl
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-03-28 21:02:48 +0100
committerwm4 <wm4@nowhere>2013-03-28 21:46:17 +0100
commit4221417875a67a3040de6fc01ba8c20b286855df (patch)
treeea24e7c7e93d558ede20a40a3aa8e6e5f4288a45 /video/out/gl_video_shaders.glsl
parent120d6bf57cbed1be4d909b0633908fc32fed7013 (diff)
downloadmpv-4221417875a67a3040de6fc01ba8c20b286855df.tar.bz2
mpv-4221417875a67a3040de6fc01ba8c20b286855df.tar.xz
gl_video: support NV21 too
Diffstat (limited to 'video/out/gl_video_shaders.glsl')
-rw-r--r--video/out/gl_video_shaders.glsl3
1 files changed, 3 insertions, 0 deletions
diff --git a/video/out/gl_video_shaders.glsl b/video/out/gl_video_shaders.glsl
index 4e2ccdde37..51f18de377 100644
--- a/video/out/gl_video_shaders.glsl
+++ b/video/out/gl_video_shaders.glsl
@@ -332,6 +332,9 @@ void main() {
#ifdef USE_GBRP
color.gbr = color;
#endif
+#ifdef USE_SWAP_UV
+ color.rbg = color;
+#endif
#ifdef USE_YGRAY
// NOTE: actually slightly wrong for 16 bit input video, and completely
// wrong for 9/10 bit input