Example Program: box.cc

The drawBoxes() function ends with the function glFlush(). This important function should always be called after the drawing is complete. It causes the entire OpenGL graphics pipeline to be flushed.