[Bf-blender-cvs] [b30a2fe] master: Fix T44322: Crash when trying to render spotlight halos.
Bastien Montagne
noreply at git.blender.org
Thu Apr 9 16:34:58 CEST 2015
Commit: b30a2fe3f4e0414483c8408a080fd56bc1ca5958
Author: Bastien Montagne
Date: Thu Apr 9 16:32:45 2015 +0200
Branches: master
https://developer.blender.org/rBb30a2fe3f4e0414483c8408a080fd56bc1ca5958
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.
===================================================================
M source/blender/render/intern/source/rendercore.c
===================================================================
diff --git a/source/blender/render/intern/source/rendercore.c b/source/blender/render/intern/source/rendercore.c
index 99611a9..a634bd9 100644
--- a/source/blender/render/intern/source/rendercore.c
+++ b/source/blender/render/intern/source/rendercore.c
@@ -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];
More information about the Bf-blender-cvs
mailing list