Texture mapping, fixing the index buffer