vo_opengl: use correct texture coordinates for nv12
This commit is contained in:
1 parent
77869e5914
commit
6efd095dfd
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user