1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-03 05:22:23 +00:00

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
This commit is contained in:
reimar 2008-05-25 11:11:32 +00:00
parent e1f2c361a3
commit 552052ac31

View File

@ -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)