mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-29 07:06:59 +08:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user