[Mplayer-cvslog] CVS: main/libvo vo_gl2.c,1.42,1.43

Reimar Döffinger CVS syncmail at mplayerhq.hu
Sun May 2 16:16:15 CEST 2004


CVS change done by Reimar Döffinger CVS

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

Modified Files:
	vo_gl2.c 
Log Message:
clear buffer after (glX)SwapBuffers in fullscreen to avoid flickering borders


Index: vo_gl2.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_gl2.c,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -r1.42 -r1.43
--- vo_gl2.c	1 May 2004 19:37:09 -0000	1.42
+++ vo_gl2.c	2 May 2004 14:16:13 -0000	1.43
@@ -1115,6 +1115,9 @@
 #else
   glXSwapBuffers( mDisplay,vo_window );
 #endif
+
+  if (vo_fs) // Avoid flickering borders in fullscreen mode
+    glClear (GL_COLOR_BUFFER_BIT);
 }
 
 //static inline uint32_t draw_slice_x11(uint8_t *src[], uint32_t slice_num)




More information about the MPlayer-cvslog mailing list