Edit AllPages

I have a Cocoa application that subclasses NSView, much like this CustomGLView, to do some OpenGL graphics. The context is double buffered, however calls to NSOpenGLContext flushBuffer fail in certain situations. The debugger shows me that flushBuffer gets as far as glsSwapIsBackingStore before failing.

What would cause flushBuffer to fail?

It fails because it’s buggy or something. Try calling glFlush() directly.

Try to avoid glFlush()… I would suggest first running your code under OpenGL profiler to find out if there are any GL errors.