vo_opengl: remove pointless glFinish calls

This commit is contained in:
wm4 2014-12-19 23:50:12 +01:00
parent e749d26ac3
commit fcd2ea7601
2 changed files with 0 additions and 5 deletions

View File

@ -180,11 +180,9 @@ static bool config_window_wayland(struct MPGLContext *ctx, int flags)
static void releaseGlContext_wayland(MPGLContext *ctx)
{
GL *gl = ctx->gl;
struct vo_wayland_state *wl = ctx->vo->wayland;
if (wl->egl_context.egl.ctx) {
gl->Finish();
eglReleaseThread();
wl_egl_window_destroy(wl->egl_context.egl_window);
eglDestroySurface(wl->egl_context.egl.dpy, wl->egl_context.egl_surface);

View File

@ -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);
}