diff options
Diffstat (limited to 'video/out/gl_x11.c')
-rw-r--r-- | video/out/gl_x11.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/video/out/gl_x11.c b/video/out/gl_x11.c index 083e5d263a..6f8e47b6f2 100644 --- a/video/out/gl_x11.c +++ b/video/out/gl_x11.c @@ -278,13 +278,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); } |