diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-05-25 11:11:32 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-05-25 11:11:32 +0000 |
commit | 552052ac31741ae95c23d04c5df7349d166642d6 (patch) | |
tree | f13d47ba3cf4b90915a69877f2d75993a6cbac6e /libvo | |
parent | e1f2c361a3b60e538f08bedb7e7b82e1709d80d8 (diff) |
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
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) |