[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [15029] trunk/blender/source/blender/ render/intern/source/rayshade.c:
Brecht Van Lommel
brechtvanlommel at pandora.be
Wed May 28 19:42:03 CEST 2008
Revision: 15029
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=15029
Author: blendix
Date: 2008-05-28 19:42:03 +0200 (Wed, 28 May 2008)
Log Message:
-----------
Small fix for last AO sphere sampling bugfix, didn't update
random sampling code as well.
Modified Paths:
--------------
trunk/blender/source/blender/render/intern/source/rayshade.c
Modified: trunk/blender/source/blender/render/intern/source/rayshade.c
===================================================================
--- trunk/blender/source/blender/render/intern/source/rayshade.c 2008-05-28 17:16:43 UTC (rev 15028)
+++ trunk/blender/source/blender/render/intern/source/rayshade.c 2008-05-28 17:42:03 UTC (rev 15029)
@@ -1476,9 +1476,12 @@
tot= 2*resol*resol;
if (type & WO_AORNDSMP) {
- static float sphere[2*3*256];
+ float *sphere;
int a;
+ // always returns table
+ sphere= threadsafe_table_sphere(0, thread, xs, ys, tot);
+
/* total random sampling. NOT THREADSAFE! (should be removed, is not useful) */
vec= sphere;
for (a=0; a<tot; a++, vec+=3) {
@@ -1493,7 +1496,8 @@
float ang, *vec1;
int a;
- sphere= threadsafe_table_sphere(1, thread, xs, ys, tot); // returns table if xs and ys were equal to last call
+ // returns table if xs and ys were equal to last call
+ sphere= threadsafe_table_sphere(1, thread, xs, ys, tot);
if(sphere==NULL) {
sphere= threadsafe_table_sphere(0, thread, xs, ys, tot);
More information about the Bf-blender-cvs
mailing list