diff options
Diffstat (limited to 'video')
-rw-r--r-- | video/out/opengl/video.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/opengl/video.c b/video/out/opengl/video.c index 980867b8cc..6935f9a715 100644 --- a/video/out/opengl/video.c +++ b/video/out/opengl/video.c @@ -1537,7 +1537,7 @@ static void pass_convert_yuv(struct gl_video *p) GLSL(color = vec4(color.rgb * color.a, 1.0);) } else if (p->opts.alpha_mode == 3) { // blend against tiles GLSL(bvec2 tile = lessThan(fract(gl_FragCoord.xy / 32.0), vec2(0.5));) - GLSL(vec3 background = vec3(mix(0.75, 1.0, tile.x != tile.y));) + GLSL(vec3 background = vec3(tile.x == tile.y ? 1.0 : 0.75);) GLSL(color.rgb = color.rgb * color.a + background * (1.0 - color.a);) } else if (p->gl->fb_premultiplied) { GLSL(color = vec4(color.rgb * color.a, color.a);) |