changeset 12394:b3ff1a576b8c

clear buffer after (glX)SwapBuffers in fullscreen to avoid flickering borders
author reimar
date Sun, 02 May 2004 14:16:13 +0000
parents b34654a47da1
children b969547bb0b1
files libvo/vo_gl2.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_gl2.c	Sun May 02 10:43:14 2004 +0000
+++ b/libvo/vo_gl2.c	Sun May 02 14:16:13 2004 +0000
@@ -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)