glFinish — block until all GL execution is complete

C Specification

void glFinish(void); 


glFinish does not return until the effects of all previously called GL commands are complete. Such effects include all changes to GL client and server state as well as all changes to the frame buffer contents.


glFinish is NOT required before a call to eglSwapBuffers or glReadPixels. glFinish can take some time and for performance reasons it is best to use this function infrequently and only when necessary.

See Also

glFlush glReadPixels eglSwapBuffers


Copyright © 2003-2004 Silicon Graphics, Inc. This document is licensed under the SGI Free Software B License. For details, see