Remove unnecessary glGet* in the render loop