From 552052ac31741ae95c23d04c5df7349d166642d6 Mon Sep 17 00:00:00 2001 From: reimar Date: Sun, 25 May 2008 11:11:32 +0000 Subject: [PATCH] Reorder flip_page to make moving around do_render call easier git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26873 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_gl.c | 16 ++++++++-------- 1 file 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)