forked from bartvdbraak/blender
Fix T44322: Crash when trying to render spotlight halos.
Trying to access rl's from full samples in non-full-OSA context (with uninitialized sample index even :P ). Caused by rBd5f1b9c2, probably a copy/paste typo or so.
This commit is contained in:
parent
4cadbb03a8
commit
b30a2fe3f4
@ -413,7 +413,7 @@ static void lamphalo_tile(RenderPart *pa, RenderLayer *rl)
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
fac= ((float)R.osa-totsamp)/(float)R.osa;
|
fac= ((float)R.osa-totsamp)/(float)R.osa;
|
||||||
pass = RE_RenderLayerGetPass(rlpp[sample], SCE_PASS_COMBINED, R.viewname);
|
pass = RE_RenderLayerGetPass(rl, SCE_PASS_COMBINED, R.viewname);
|
||||||
pass += od * 4;
|
pass += od * 4;
|
||||||
pass[0]+= fac*col[0];
|
pass[0]+= fac*col[0];
|
||||||
pass[1]+= fac*col[1];
|
pass[1]+= fac*col[1];
|
||||||
|
Loading…
Reference in New Issue
Block a user