[MPlayer-cvslog] CVS: main/libvo gl_common.c,1.32,1.33

Reimar Döffinger CVS syncmail at mplayerhq.hu
Mon Nov 7 22:29:40 CET 2005


CVS change done by Reimar Döffinger CVS

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

Modified Files:
	gl_common.c 
Log Message:
do not call glFinish when we do not have a context


Index: gl_common.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/gl_common.c,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -r1.32 -r1.33
--- gl_common.c	31 Oct 2005 13:56:16 -0000	1.32
+++ gl_common.c	7 Nov 2005 21:29:38 -0000	1.33
@@ -959,6 +959,7 @@
 
   // should only be needed when keeping context, but not doing glFinish
   // can cause flickering even when we do not keep it.
+  if (*context)
   glFinish();
   new_vinfo = GetPixelFormat(windc);
   if (*context && *vinfo && new_vinfo && *vinfo == new_vinfo) {
@@ -1071,6 +1072,7 @@
 
   // should only be needed when keeping context, but not doing glFinish
   // can cause flickering even when we do not keep it.
+  if (*context)
   glFinish();
   new_vinfo = getWindowVisualInfo(win);
   if (*context && *vinfo && new_vinfo &&




More information about the MPlayer-cvslog mailing list