Clean up resources and textures.