Removed unnecessary texture setting function