glFinish  8PVL4_

[New - Windows 95, OEM Service Release 2]

The glFinish function blocks until all OpenGL execution is complete.

void glFinish(

    void

 

   );

 

 

Remarks

The glFinish function does not return until the effects of all previously called OpenGL functions are complete. Such effects include all changes to the OpenGL state, all changes to the connection state, and all changes to the frame buffer contents.

The glFinish function requires a round trip to the server.

Error Codes

The following are the error codes generated and their conditions.

Error Code

Condition

GL_INVALID_OPERATION

glFinish was called between a call to glBegin and the corresponding call to glEnd.

 

See Also

glBegin, glEnd, glFlush