[MPlayer-cvslog] r26873 - trunk/libvo/vo_gl.c
reimar
subversion at mplayerhq.hu
Sun May 25 13:11:32 CEST 2008
Author: reimar
Date: Sun May 25 13:11:32 2008
New Revision: 26873
Log:
Reorder flip_page to make moving around do_render call easier
Modified:
trunk/libvo/vo_gl.c
Modified: trunk/libvo/vo_gl.c
==============================================================================
--- trunk/libvo/vo_gl.c (original)
+++ trunk/libvo/vo_gl.c Sun May 25 13:11:32 2008
@@ -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)
More information about the MPlayer-cvslog
mailing list