diff options
Diffstat (limited to 'video/out/opengl/video.c')
-rw-r--r-- | video/out/opengl/video.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/video/out/opengl/video.c b/video/out/opengl/video.c index a96a95b5c7..fb7f9ee882 100644 --- a/video/out/opengl/video.c +++ b/video/out/opengl/video.c @@ -1527,6 +1527,8 @@ static void pass_convert_yuv(struct gl_video *p) GLSL(color.a = 1.0;) } else if (p->opts.alpha_mode == 2) { // blend GLSL(color = vec4(color.rgb * color.a, 1.0);) + } else if (p->gl->fb_premultiplied) { + GLSL(color = vec4(color.rgb * color.a, color.a);) } } |