diff options
Diffstat (limited to 'video')
-rw-r--r-- | video/out/opengl/hwdec_vaegl.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/video/out/opengl/hwdec_vaegl.c b/video/out/opengl/hwdec_vaegl.c index 1e470668f9..52738cbb4d 100644 --- a/video/out/opengl/hwdec_vaegl.c +++ b/video/out/opengl/hwdec_vaegl.c @@ -228,6 +228,9 @@ static int map_image(struct gl_hwdec *hw, struct mp_image *hw_image, } gl->BindTexture(GL_TEXTURE_2D, 0); + if (va_image->format.fourcc == VA_FOURCC_YV12) + MPSWAP(GLuint, out_textures[1], out_textures[2]); + va_unlock(p->ctx); return 0; |