diff options
author | wm4 <wm4@nowhere> | 2016-03-29 21:56:38 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-03-29 21:56:38 +0200 |
commit | dae23fff09337992f9773557a3ba41ffb1311b32 (patch) | |
tree | 2a9d7a56c6c844395986b7093da27012eb9cc7c6 /video/out/opengl/context_x11.c | |
parent | b95a10c2dd9d73d13375de1c802c2124478f6d88 (diff) | |
download | mpv-dae23fff09337992f9773557a3ba41ffb1311b32.tar.bz2 mpv-dae23fff09337992f9773557a3ba41ffb1311b32.tar.xz |
vo_opengl: always premultiply alpha
Until now, we've let the windowing backend decide. But since they
usually require premultiplied alpha, and premultiplied alpha is easier
to handle, hardcode it.
Diffstat (limited to 'video/out/opengl/context_x11.c')
-rw-r--r-- | video/out/opengl/context_x11.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/video/out/opengl/context_x11.c b/video/out/opengl/context_x11.c index c02730c729..d9a584e87c 100644 --- a/video/out/opengl/context_x11.c +++ b/video/out/opengl/context_x11.c @@ -274,7 +274,6 @@ static int glx_init(struct MPGLContext *ctx, int flags) glXGetFBConfigAttrib(vo->x11->display, fbc, GLX_RED_SIZE, &ctx->gl->fb_r); glXGetFBConfigAttrib(vo->x11->display, fbc, GLX_GREEN_SIZE, &ctx->gl->fb_g); glXGetFBConfigAttrib(vo->x11->display, fbc, GLX_BLUE_SIZE, &ctx->gl->fb_b); - ctx->gl->fb_premultiplied = true; return 0; |