fixed multiple insertions of the same texture
[summerhack] / src / parts / temple.cpp
index e2a58e1..5db2eca 100644 (file)
@@ -139,7 +139,6 @@ static void make_skycube(Scene *scene) {
        for(int i=0; i<6; i++) {
                Material *mat = face[i]->get_material_ptr();
                mat->emissive_color = 1.0;
-               add_texture(tex[i]);
                mat->set_texture(tex[i], TEXTYPE_DIFFUSE);
                face[i]->set_texture_addressing(TEXADDR_CLAMP);
                scene->add_object(face[i]);