summaryrefslogtreecommitdiffstats
path: root/video/out/vo_opengl.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-09-19 16:55:56 +0200
committerwm4 <wm4@nowhere>2013-09-19 17:03:03 +0200
commit93feffad15fe68dc97278df9e6726135e31b6474 (patch)
tree7a487a30eedd5064bc09e7c3801d8db738867a84 /video/out/vo_opengl.c
parent69e272dad707aae1ae99dabdf45bb82d3bf7a905 (diff)
downloadmpv-93feffad15fe68dc97278df9e6726135e31b6474.tar.bz2
mpv-93feffad15fe68dc97278df9e6726135e31b6474.tar.xz
vo_opengl: blend alpha components by default
Improves display of images and video with alpha channel, especially if the transparent regions contain (supposed to be invisible) garbage color values.
Diffstat (limited to 'video/out/vo_opengl.c')
-rw-r--r--video/out/vo_opengl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/vo_opengl.c b/video/out/vo_opengl.c
index 7f4c05ac58..03d1689667 100644
--- a/video/out/vo_opengl.c
+++ b/video/out/vo_opengl.c
@@ -144,7 +144,7 @@ static bool config_window(struct gl_priv *p, uint32_t d_width,
if (p->renderer_opts->stereo_mode == GL_3D_QUADBUFFER)
flags |= VOFLAG_STEREO;
- if (p->renderer_opts->enable_alpha)
+ if (p->renderer_opts->alpha_mode == 1)
flags |= VOFLAG_ALPHA;
if (p->use_gl_debug)