diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-05-02 14:16:13 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-05-02 14:16:13 +0000 |
commit | bb4e35525840d5e8eaf60c52cd371e6604e88878 (patch) | |
tree | d3e3ffeeaa88308ce9ac8443291ef58c5b479f77 | |
parent | f7e6d7f0371b2d7a25338efffb95033669b2c62c (diff) |
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
-rw-r--r-- | libvo/vo_gl2.c | 3 |
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) |