Put texIndex last, not first.

Also fill not loadable textures as white.