Some small GL state optimisations.