textures and index rendering working