call glFinish if drawing to front buffer

This commit is contained in:
Brian Paul 2005-09-29 18:46:27 +00:00
parent b2404b132d
commit 1ad6e08090
1 changed files with 3 additions and 1 deletions

View File

@ -71,7 +71,9 @@ static void Display( void )
glDisable(GL_SCISSOR_TEST);
glDisable(GL_FOG);
if (!DrawFront)
if (DrawFront)
glFinish();
else
glutSwapBuffers();
}