There are several similar OpenGL operations when working with an NSOpenGLView:
glFlush()
[[self openGLContext] flushBuffer]
The correct approach is just calling [[self openGLContext] flushBuffer].