Flushing GL command queue after every frame