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:
parent
77869e5914
commit
6efd095dfd
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user