Must use glFlush when doublebuffering is not used

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17118 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2005-12-06 22:35:54 +00:00
parent 6b9f08f720
commit cd8e16a22e
1 changed files with 2 additions and 1 deletions

View File

@ -530,11 +530,12 @@ flip_page(void)
BindTexture(gl_target, 0);
}
// glFlush();
if (use_glFinish)
glFinish();
if (vo_doublebuffering)
swapGlBuffers();
else if (!use_glFinish)
glFlush();
if (vo_fs && use_aspect && vo_doublebuffering)
glClear(GL_COLOR_BUFFER_BIT);