clear buffer after (glX)SwapBuffers in fullscreen to avoid flickering borders

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12395 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2004-05-02 14:16:13 +00:00
parent f7e6d7f037
commit bb4e355258
1 changed files with 3 additions and 0 deletions

View File

@ -1115,6 +1115,9 @@ flip_page(void)
#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)