[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [50746] trunk/blender/intern/cycles/render /integrator.cpp: Fix #32018: non-progressive integrator crash.

Brecht Van Lommel brechtvanlommel at pandora.be
Wed Sep 19 19:09:12 CEST 2012


Revision: 50746
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=50746
Author:   blendix
Date:     2012-09-19 17:09:11 +0000 (Wed, 19 Sep 2012)
Log Message:
-----------
Fix #32018: non-progressive integrator crash.

Modified Paths:
--------------
    trunk/blender/intern/cycles/render/integrator.cpp

Modified: trunk/blender/intern/cycles/render/integrator.cpp
===================================================================
--- trunk/blender/intern/cycles/render/integrator.cpp	2012-09-19 15:01:36 UTC (rev 50745)
+++ trunk/blender/intern/cycles/render/integrator.cpp	2012-09-19 17:09:11 UTC (rev 50746)
@@ -123,6 +123,8 @@
 	max_samples *= (max_bounce + transparent_max_bounce + 2);
 
 	int dimensions = PRNG_BASE_NUM + max_samples*PRNG_BOUNCE_NUM;
+	dimensions = min(dimensions, SOBOL_MAX_DIMENSIONS);
+
 	uint *directions = dscene->sobol_directions.resize(SOBOL_BITS*dimensions);
 
 	sobol_generate_direction_vectors((uint(*)[SOBOL_BITS])directions, dimensions);




More information about the Bf-blender-cvs mailing list