summaryrefslogtreecommitdiffstats
path: root/video/out/gl_x11.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/gl_x11.c')
-rw-r--r--video/out/gl_x11.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/video/out/gl_x11.c b/video/out/gl_x11.c
index 2bc567ccae..42227d495c 100644
--- a/video/out/gl_x11.c
+++ b/video/out/gl_x11.c
@@ -274,13 +274,10 @@ static void releaseGlContext_x11(MPGLContext *ctx)
XVisualInfo **vinfo = &glx_ctx->vinfo;
GLXContext *context = &glx_ctx->context;
Display *display = ctx->vo->x11->display;
- GL *gl = ctx->gl;
if (*vinfo)
XFree(*vinfo);
*vinfo = NULL;
if (*context) {
- if (gl->Finish)
- gl->Finish();
glXMakeCurrent(display, None, NULL);
glXDestroyContext(display, *context);
}