Finished implementing Texture index allocation.