Handle glFlush/glFinish through the state tracker.