Call glFinish() when rendering is done