closes #2557, texture unpacker didn't handle indices correctly