704 CHAPTER 20 OpenGL on Mac OS X
LISTING 20.2 Continued
-(void) drawRect: (NSRect) bounds
glFlush(); // All done!
OpenGL with Cocoa 705
Hang on a Second There!
At this point in time, the astute reader may be imagining the sound of screeching tires on pavement. Was that a glFlush you saw after RenderScene in Listing 20.2 instead of some sort of buffer swap call? Indeed it was, and this brings us to an interesting subtlety of OpenGL on Mac OS X (as well as a nice segue into the next section).