diff options
Diffstat (limited to 'video/out/gl_x11.c')
-rw-r--r-- | video/out/gl_x11.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/video/out/gl_x11.c b/video/out/gl_x11.c index 5fe43e54f7..67f87716bd 100644 --- a/video/out/gl_x11.c +++ b/video/out/gl_x11.c @@ -68,9 +68,6 @@ static bool create_context_x11_old(struct MPGLContext *ctx) glx_ctx->context = new_context; - if (!glXIsDirect(vo->x11->display, new_context)) - ctx->gl->mpgl_caps &= ~MPGL_CAP_NO_SW; - return true; } @@ -124,9 +121,6 @@ static bool create_context_x11_gl3(struct MPGLContext *ctx, bool debug) mpgl_load_functions(ctx->gl, (void *)glXGetProcAddress, glxstr, vo->log); - if (!glXIsDirect(vo->x11->display, context)) - ctx->gl->mpgl_caps &= ~MPGL_CAP_NO_SW; - return true; } @@ -260,14 +254,11 @@ static bool config_window_x11(struct MPGLContext *ctx, int flags) success = create_context_x11_gl3(ctx, flags & VOFLAG_GL_DEBUG); if (!success) success = create_context_x11_old(ctx); + if (success && !glXIsDirect(vo->x11->display, glx_ctx->context)) + ctx->gl->mpgl_caps |= MPGL_CAP_SW; return success; } - -/** - * \brief free the VisualInfo and GLXContext of an OpenGL context. - * \ingroup glcontext - */ static void releaseGlContext_x11(MPGLContext *ctx) { struct glx_context *glx_ctx = ctx->priv; |