Stop leaking gl state.