remove texture definition when not used