Copies the back buffer to the front buffer of the receiver.
- macOS 10.0–10.14Deprecated
If the receiver is not a double-buffered context, this call does nothing.
NSOpen object used to create the context had a
false backing store attribute (
NSOpen), the buffers may be exchanged rather than copied. This is often the case in full-screen mode.
According to the swap interval context attribute (see
NSOpen), the copy may take place during the vertical retrace of the monitor, rather than immediately after
flush is called. An implicit
gl is done by
flush before it returns. For optimal performance, an application should not call
gl immediately before calling
flush. Subsequent OpenGL commands can be issued immediately after calling
flush, but are not executed until the buffer copy is completed.