summaryrefslogtreecommitdiffstats
path: root/libvo/vo_gl2.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-05-02 14:16:13 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-05-02 14:16:13 +0000
commitbb4e35525840d5e8eaf60c52cd371e6604e88878 (patch)
treed3e3ffeeaa88308ce9ac8443291ef58c5b479f77 /libvo/vo_gl2.c
parentf7e6d7f0371b2d7a25338efffb95033669b2c62c (diff)
downloadmpv-bb4e35525840d5e8eaf60c52cd371e6604e88878.tar.bz2
mpv-bb4e35525840d5e8eaf60c52cd371e6604e88878.tar.xz
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
Diffstat (limited to 'libvo/vo_gl2.c')
-rw-r--r--libvo/vo_gl2.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libvo/vo_gl2.c b/libvo/vo_gl2.c
index 2303a76d89..f6279cb03a 100644
--- a/libvo/vo_gl2.c
+++ b/libvo/vo_gl2.c
@@ -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)