Crash is irregular shadow buffer, due to using un-initialized memory
This commit is contained in:
Ton Roosendaal
2006-11-24 15:11:29 +00:00
parent 9d61481db4
commit e600fdb882

View File

@@ -1569,6 +1569,8 @@ static void isb_add_shadfac(ISBShadfacA **isbsapp, MemArena *mem, int facenr, sh
new->shadfac= shadfacf;
if(*isbsapp)
new->next= (*isbsapp);
else
new->next= NULL;
*isbsapp= new;
}
@@ -1762,6 +1764,8 @@ static ISBSampleA *isb_alloc_sample_transp(ISBSampleA **isbsa, MemArena *mem)
new= BLI_memarena_alloc(mem, sizeof(ISBSampleA));
if(*isbsa)
new->next= (*isbsa);
else
new->next= NULL;
*isbsa= new;
return new;