Save video: Call glFinish after drawing to the framebuffer so it will block until all pixels are drawn.