# HG changeset patch # User reimar # Date 1211713892 0 # Node ID 3822def2c61d7068bde3ae678a693a52acbbfeb4 # Parent ea6c5ea1aa6483f4e6adf4caa08085866f32ef23 Reorder flip_page to make moving around do_render call easier diff -r ea6c5ea1aa64 -r 3822def2c61d libvo/vo_gl.c --- a/libvo/vo_gl.c Sun May 25 11:06:51 2008 +0000 +++ b/libvo/vo_gl.c Sun May 25 11:11:32 2008 +0000 @@ -637,15 +637,15 @@ 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)