One free too many on shading displaylists, causes material-less objects not
authorTon Roosendaal <ton@blender.org>
Thu, 25 Nov 2004 16:27:21 +0000 (16:27 +0000)
committerTon Roosendaal <ton@blender.org>
Thu, 25 Nov 2004 16:27:21 +0000 (16:27 +0000)
to render.

source/blender/blenkernel/intern/displist.c

index f914be5506c849bfeee29f5018e4f983054a80b8..a59748dadf0ab7646405eb7348ded05fb4216412 100644 (file)
@@ -453,8 +453,6 @@ static void initfastshade(void)
        Mat4Ortho(R.viewinv);
        Mat4Invert(fviewmat, R.viewinv);
 
        Mat4Ortho(R.viewinv);
        Mat4Invert(fviewmat, R.viewinv);
 
-       init_render_material(&defmaterial);
-       
        /* initrendertexture(); */
 
        base= G.scene->base.first;
        /* initrendertexture(); */
 
        base= G.scene->base.first;
@@ -510,7 +508,6 @@ void freefastshade()
                
                MEM_freeN(fl);
        }
                
                MEM_freeN(fl);
        }
-       end_render_material(&defmaterial);
 }
 
 
 }