Fix loading of static textures.