1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-25 08:12:17 +00:00

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

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