Get rid of texture state code.