# HG changeset patch # User reimar # Date 1083507373 0 # Node ID b3ff1a576b8c6a8c56a8d8ecd23f5b31c4536e37 # Parent b34654a47da14560e0aea2f3818b31f16510e474 clear buffer after (glX)SwapBuffers in fullscreen to avoid flickering borders diff -r b34654a47da1 -r b3ff1a576b8c libvo/vo_gl2.c --- 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)