summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-04-10 19:10:07 +0200
committerwm4 <wm4@nowhere>2015-04-10 19:10:07 +0200
commit6efd095dfd6abc02ea1a1daa34f8b21080012931 (patch)
tree478b5a77f9f56010532f6892b6a1aea8abcb9f25 /video
parent77869e5914d306d49d605ce0734b2a6145d02089 (diff)
downloadmpv-6efd095dfd6abc02ea1a1daa34f8b21080012931.tar.bz2
mpv-6efd095dfd6abc02ea1a1daa34f8b21080012931.tar.xz
vo_opengl: use correct texture coordinates for nv12
Diffstat (limited to 'video')
-rw-r--r--video/out/gl_video.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/gl_video.c b/video/out/gl_video.c
index 3a6cb9ca62..b61d27aeee 100644
--- a/video/out/gl_video.c
+++ b/video/out/gl_video.c
@@ -1358,7 +1358,7 @@ static void pass_read_video(struct gl_video *p)
GLSL(vec4 color;)
if (p->plane_count == 2) {
gl_transform_rect(chromafix, &p->pass_tex[1].src);
- GLSL(vec2 chroma = texture(texture1, texcoord0).rg;) // NV formats
+ GLSL(vec2 chroma = texture(texture1, texcoord1).rg;) // NV formats
} else {
gl_transform_rect(chromafix, &p->pass_tex[1].src);
gl_transform_rect(chromafix, &p->pass_tex[2].src);