added glFinish with comment
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
/* $Id: osdemo.c,v 1.9 2002/07/12 15:54:19 brianp Exp $ */
|
/* $Id: osdemo.c,v 1.10 2003/03/03 03:14:25 brianp Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Demo of off-screen Mesa rendering
|
* Demo of off-screen Mesa rendering
|
||||||
@@ -139,6 +139,11 @@ static void render_image( void )
|
|||||||
|
|
||||||
glPopMatrix();
|
glPopMatrix();
|
||||||
|
|
||||||
|
/* This is very important!!!
|
||||||
|
* Make sure buffered commands are finished!!!
|
||||||
|
*/
|
||||||
|
glFinish();
|
||||||
|
|
||||||
Frames++;
|
Frames++;
|
||||||
if (perf) {
|
if (perf) {
|
||||||
GLint t = glutGet(GLUT_ELAPSED_TIME);
|
GLint t = glutGet(GLUT_ELAPSED_TIME);
|
||||||
|
Reference in New Issue
Block a user