Minor fix for texture indexing.