set textures before rendering