Fix for bug #10444: environment map crash with qmc.

This commit is contained in:
Brecht Van Lommel 2008-05-05 17:43:13 +00:00
parent d5ffcda5dc
commit 95ed34be4a

@ -158,6 +158,7 @@ static Render *envmap_render_copy(Render *re, EnvMap *env)
envre->totinstance= re->totinstance;
envre->instancetable= re->instancetable;
envre->objectinstance= re->objectinstance;
envre->qmcsamplers= re->qmcsamplers;
return envre;
}
@ -178,6 +179,7 @@ static void envmap_free_render_copy(Render *envre)
envre->raytree= NULL;
envre->instancetable.first= envre->instancetable.last= NULL;
envre->objectinstance= NULL;
envre->qmcsamplers= NULL;
RE_FreeRender(envre);
}