Mercurial > mplayer.hg
changeset 26841:3822def2c61d
Reorder flip_page to make moving around do_render call easier
author | reimar |
---|---|
date | Sun, 25 May 2008 11:11:32 +0000 |
parents | ea6c5ea1aa64 |
children | c675462d66d9 |
files | libvo/vo_gl.c |
diffstat | 1 files changed, 8 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- 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)