From e34957940b5012dba23616469fb5aec56fcde5ee Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 21 Jan 2015 20:32:42 +0100 Subject: vo_opengl: cleanups after vo_opengl_old removal Don't load all the legacy functions (including ancient extensions). Slightly simplify function loader and context creation, now that legacy GL doesn't need to be handled. Remove the code for drawing OSD in legacy mode. Remove all the header hacks, which were meant for ancient OpenGL headers which didn't even support things like OpenGL 1.3. Instead, adjust the GLX check to make sure we get both OpenGL 3x and 2.1 symbols. For win32 and OSX, we assume that the user has the latest headers anyway. For wayland, we hope that things somehow go right. --- video/out/gl_x11.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'video/out/gl_x11.c') diff --git a/video/out/gl_x11.c b/video/out/gl_x11.c index b99f5ccc0a..fa1ab62a28 100644 --- a/video/out/gl_x11.c +++ b/video/out/gl_x11.c @@ -261,11 +261,12 @@ static bool config_window_x11(struct MPGLContext *ctx, int flags) int gl_version = ctx->requested_gl_version; bool success = false; - if (gl_version >= 300 && !glx_ctx->force_es) + if (!glx_ctx->force_es) { success = create_context_x11_gl3(ctx, flags, gl_version, false); - if (!success && !glx_ctx->force_es) - success = create_context_x11_old(ctx); - if (!success && gl_version >= 300) // 3.00 = vo_opengl; accepts GLES 2 or 3 + if (!success) + success = create_context_x11_old(ctx); + } + if (!success) // try ES success = create_context_x11_gl3(ctx, flags, 200, true); if (success && !glXIsDirect(vo->x11->display, glx_ctx->context)) ctx->gl->mpgl_caps |= MPGL_CAP_SW; -- cgit v1.2.3