From 788929e4e07e00325cc1b2f58569db9de1ba47fb Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 14 Jun 2016 10:35:43 +0200 Subject: vo_opengl: use standard functions to retrieve display depth Until now, we've used system-specific API (GLX, EGL, etc.) to retrieve the depth of the default framebuffer. (We equal this to display depth and use the determined depth for dithering.) We can actually retrieve this value through standard GL API, and it works everywhere (except GLES 2 of course). This simplifies everything a great deal. egl_helpers.c is empty now. But I expect that some EGL boilerplate will be moved to it, so don't remove it yet. --- video/out/opengl/context_x11egl.c | 1 - 1 file changed, 1 deletion(-) (limited to 'video/out/opengl/context_x11egl.c') diff --git a/video/out/opengl/context_x11egl.c b/video/out/opengl/context_x11egl.c index 14ca3f9e25..2e4fd5fa90 100644 --- a/video/out/opengl/context_x11egl.c +++ b/video/out/opengl/context_x11egl.c @@ -163,7 +163,6 @@ 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; -- cgit v1.2.3