# HG changeset patch # User reimar # Date 1131398978 0 # Node ID 179a7a2857a82bdab0c5cf3d240c76d7d7a61c74 # Parent fab832f37083ae32e04234c2afb1cca006301244 do not call glFinish when we do not have a context diff -r fab832f37083 -r 179a7a2857a8 libvo/gl_common.c --- 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 &&