Blocks until all GL execution is complete.
OpenGL C bindings library: libGL.a
void glFinish( void )
The glFinish subroutine does not return until the effects of all previously called GL subroutines are complete. Such effects include all changes to the GL state, all changes to the connection state, and all changes to the frame buffer contents.
The glFinish subroutine requires a round-trip to the server.
GL_INVALID_OPERATION | The glFinish subroutine is called between a call to glBegin and the corresponding call to glEnd. |
/usr/include/GL/gl.h | Contains C language constants, variable type definitions, and ANSI function prototypes for OpenGL. |
The glBegin or glEnd subroutine, glFlush subroutine, glWaitGL subroutine, glWaitX subroutine.