summaryrefslogtreecommitdiffstats
path: root/video/out/gl_x11.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-12-19 23:50:12 +0100
committerwm4 <wm4@nowhere>2014-12-19 23:50:12 +0100
commitfcd2ea760108ebc1c3eb59e443407e91b8a33e6b (patch)
tree8986956b18a405b8bc1bc0b3cd3fb96a1165d0a3 /video/out/gl_x11.c
parente749d26ac3347da2e319fc7f57e6ebb72becbd7b (diff)
downloadmpv-fcd2ea760108ebc1c3eb59e443407e91b8a33e6b.tar.bz2
mpv-fcd2ea760108ebc1c3eb59e443407e91b8a33e6b.tar.xz
vo_opengl: remove pointless glFinish calls
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 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);
}