changeset 14089:00283cb37fd0

Make the context not current before destroying it.
author reimar
date Thu, 02 Dec 2004 23:55:08 +0000
parents 9b5cfd109fab
children e84643be7bd0
files libvo/gl_common.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/gl_common.c	Thu Dec 02 19:20:14 2004 +0000
+++ b/libvo/gl_common.c	Thu Dec 02 23:55:08 2004 +0000
@@ -271,7 +271,11 @@
     XFree(*vinfo);
   *vinfo = NULL;
   if (*context)
+  {
+    glFinish();
+    glXMakeCurrent(mDisplay, None, NULL);
     glXDestroyContext(mDisplay, *context);
+  }
   *context = 0;
 }
 #endif