summaryrefslogtreecommitdiffstats
path: root/libvo/gl_osd.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-10-05 20:37:16 +0200
committerwm4 <wm4@nowhere>2012-10-16 07:26:32 +0200
commit44c62a685222f2b018a480246c2946d3e3e7529c (patch)
tree0c603432a889a4c6c549d8ee0f5cb5222586b7a0 /libvo/gl_osd.c
parent3ad918bbc62449759bbf97f6a809ebdde27ad59e (diff)
downloadmpv-44c62a685222f2b018a480246c2946d3e3e7529c.tar.bz2
mpv-44c62a685222f2b018a480246c2946d3e3e7529c.tar.xz
sub: switch to premultiplied alpha
Fixes problems with ugly borders. Note that at least in the DVD sub case, we could have just set all transparent pixels to black to solve this. vo_direct3d.c change untested, because mingw is a miserable pile of crap.
Diffstat (limited to 'libvo/gl_osd.c')
-rw-r--r--libvo/gl_osd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libvo/gl_osd.c b/libvo/gl_osd.c
index 74053afd4a..5266dca4ac 100644
--- a/libvo/gl_osd.c
+++ b/libvo/gl_osd.c
@@ -32,7 +32,7 @@ struct osd_fmt_entry {
// glBlendFunc() arguments
static const int blend_factors[SUBBITMAP_COUNT][2] = {
[SUBBITMAP_LIBASS] = {GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA},
- [SUBBITMAP_RGBA] = {GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA},
+ [SUBBITMAP_RGBA] = {GL_ONE, GL_ONE_MINUS_SRC_ALPHA},
};
static const struct osd_fmt_entry osd_to_gl3_formats[SUBBITMAP_COUNT] = {