Get rid of useless texture/sampler state changes