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:
Bastien Montagne 2015-04-09 16:32:45 +02:00
parent 4cadbb03a8
commit b30a2fe3f4
Notes: blender-bot 2023-05-03 10:14:48 +02:00
Referenced by issue #44322, Crash when trying to render spotlight halos
1 changed files with 1 additions and 1 deletions

View File

@ -413,7 +413,7 @@ static void lamphalo_tile(RenderPart *pa, RenderLayer *rl)
}
else {
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[0]+= fac*col[0];
pass[1]+= fac*col[1];