[MPlayer-cvslog] CVS: main/libvo vo_gl.c,1.96,1.97

Reimar Döffinger CVS syncmail at mplayerhq.hu
Sun Sep 11 19:45:15 CEST 2005


CVS change done by Reimar Döffinger CVS

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

Modified Files:
	vo_gl.c 
Log Message:
Respect -nodouble even though it looks very bad.


Index: vo_gl.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_gl.c,v
retrieving revision 1.96
retrieving revision 1.97
diff -u -r1.96 -r1.97
--- vo_gl.c	9 Sep 2005 16:43:18 -0000	1.96
+++ vo_gl.c	11 Sep 2005 17:45:12 -0000	1.97
@@ -164,6 +164,7 @@
   glDepthMask(GL_FALSE);
   glDisable(GL_CULL_FACE);
   glEnable(gl_target);
+  glDrawBuffer(vo_doublebuffering?GL_BACK:GL_FRONT);
 
   mp_msg(MSGT_VO, MSGL_V, "[gl] Creating %dx%d texture...\n",
           texture_width, texture_height);
@@ -429,13 +430,14 @@
 //  glFlush();
   if (use_glFinish)
   glFinish();
+  if (vo_doublebuffering)
 #ifdef GL_WIN32
   SwapBuffers(vo_hdc);
 #else
   glXSwapBuffers( mDisplay,vo_window );
 #endif
  
-  if (vo_fs && use_aspect)
+  if (vo_fs && use_aspect && vo_doublebuffering)
     glClear(GL_COLOR_BUFFER_BIT);
 }
 




More information about the MPlayer-cvslog mailing list