diff options
Diffstat (limited to 'libvo')
-rw-r--r-- | libvo/vo_gl.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libvo/vo_gl.c b/libvo/vo_gl.c index c8fbb11ad7..287f1ae8b6 100644 --- a/libvo/vo_gl.c +++ b/libvo/vo_gl.c @@ -637,15 +637,15 @@ static void do_render(void) { static void flip_page(void) { do_render(); - if (use_glFinish) - glFinish(); - if (vo_doublebuffering) + if (vo_doublebuffering) { + if (use_glFinish) glFinish(); swapGlBuffers(); - else if (!use_glFinish) - glFlush(); - - if (vo_fs && use_aspect && vo_doublebuffering) - glClear(GL_COLOR_BUFFER_BIT); + if (vo_fs && use_aspect) + glClear(GL_COLOR_BUFFER_BIT); + } else { + if (use_glFinish) glFinish(); + else glFlush(); + } } //static inline uint32_t draw_slice_x11(uint8_t *src[], uint32_t slice_num) |