changeset 16944:179a7a2857a8

do not call glFinish when we do not have a context
author reimar
date Mon, 07 Nov 2005 21:29:38 +0000
parents fab832f37083
children c17943eb7d55
files libvo/gl_common.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/gl_common.c	Mon Nov 07 16:16:14 2005 +0000
+++ b/libvo/gl_common.c	Mon Nov 07 21:29:38 2005 +0000
@@ -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 &&