[MPlayer-cvslog] CVS: main/libvo gl_common.c,1.3,1.4

Reimar Döffinger CVS syncmail at mplayerhq.hu
Fri Dec 3 00:55:10 CET 2004


CVS change done by Reimar Döffinger CVS

Update of /cvsroot/mplayer/main/libvo
In directory mail:/var2/tmp/cvs-serv32149

Modified Files:
	gl_common.c 
Log Message:
Make the context not current before destroying it.


Index: gl_common.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/gl_common.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- gl_common.c	1 Dec 2004 17:05:58 -0000	1.3
+++ gl_common.c	2 Dec 2004 23:55:08 -0000	1.4
@@ -271,7 +271,11 @@
     XFree(*vinfo);
   *vinfo = NULL;
   if (*context)
+  {
+    glFinish();
+    glXMakeCurrent(mDisplay, None, NULL);
     glXDestroyContext(mDisplay, *context);
+  }
   *context = 0;
 }
 #endif




More information about the MPlayer-cvslog mailing list