Light | Dark

# docs.GL

OpenGL 4
OpenGL 3
OpenGL 2
OpenGL ES 3
OpenGL ES 2

# glFinish

## Name

glFinish — block until all GL execution is complete

## C Specification

`void glFinish(` |  | void`)`;

## Description

`glFinish` does not return until the effects of all previously called GL commands are complete. Such effects include all changes to GL state, all changes to connection state, and all changes to the frame buffer contents.

## Notes

`glFinish` requires a round trip to the server.

## Errors

`GL_INVALID_OPERATION` is generated if `glFinish` is executed between the execution of glBegin and the corresponding execution of glEnd.

## Tutorials

Songho - OpenGL Display List

## See Also

glFlush

## Copyright

Copyright © 1991-2006 Silicon Graphics, Inc. This document is licensed under the SGI Free Software B License. For details, see https://web.archive.org/web/20171022161616/http://oss.sgi.com/projects/FreeB/.

Think you can improve this page? Edit this page on GitHub.