changeset 17117:6e3602d994a6

Must use glFlush when doublebuffering is not used
author reimar
date Tue, 06 Dec 2005 22:35:54 +0000
parents 724353364790
children ff7e0ecac697
files libvo/vo_gl.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_gl.c	Tue Dec 06 22:23:06 2005 +0000
+++ b/libvo/vo_gl.c	Tue Dec 06 22:35:54 2005 +0000
@@ -530,11 +530,12 @@
     BindTexture(gl_target, 0);
   }
 
-//  glFlush();
   if (use_glFinish)
   glFinish();
   if (vo_doublebuffering)
     swapGlBuffers();
+  else if (!use_glFinish)
+    glFlush();
  
   if (vo_fs && use_aspect && vo_doublebuffering)
     glClear(GL_COLOR_BUFFER_BIT);