OpenGL state machine - simplify one early return