vo_opengl: use correct texture coordinates for nv12

This commit is contained in:
wm4 2015-04-10 19:10:07 +02:00
parent 77869e5914
commit 6efd095dfd
1 changed files with 1 additions and 1 deletions

View File

@ -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);