diff options
author | wm4 <wm4@nowhere> | 2015-12-19 12:45:07 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-12-19 14:14:12 +0100 |
commit | 32cd85bc7ecfa74d3fefef5570e4ef546ae0643a (patch) | |
tree | 64103ab55f1970476bc212c573f9f8ddb2a364f6 /video/out/opengl/x11egl.c | |
parent | 3394d37b4ea6876c0a4484c51ba23e6b8ed08e5a (diff) | |
download | mpv-32cd85bc7ecfa74d3fefef5570e4ef546ae0643a.tar.bz2 mpv-32cd85bc7ecfa74d3fefef5570e4ef546ae0643a.tar.xz |
vo_opengl: x11egl: retrieve framebuffer depth
This is used for dithering, although I'm not aware of anyone who got
higher than 8 bit depth support to work on Linux.
Also put this into egl_helpers.c. Since EGL is pseudo-portable at best I
have no hope that the EGL context creation code in all the backends can
be fully shared. But some self-contained functionality can definitely be
shared.
Diffstat (limited to 'video/out/opengl/x11egl.c')
-rw-r--r-- | video/out/opengl/x11egl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/video/out/opengl/x11egl.c b/video/out/opengl/x11egl.c index 64d9b69974..405350d7bb 100644 --- a/video/out/opengl/x11egl.c +++ b/video/out/opengl/x11egl.c @@ -29,6 +29,7 @@ #include "common/common.h" #include "video/out/x11_common.h" #include "common.h" +#include "egl_helpers.h" struct priv { EGLDisplay egl_display; @@ -156,6 +157,7 @@ static int mpegl_init(struct MPGLContext *ctx, int flags) void *(*gpa)(const GLubyte*) = (void *(*)(const GLubyte*))eglGetProcAddress; mpgl_load_functions(ctx->gl, gpa, egl_exts, vo->log); + mp_egl_get_depth(ctx->gl, config); ctx->native_display_type = "x11"; ctx->native_display = vo->x11->display; |