Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2012-09-19 21:09:11 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2012-09-19 21:09:11 +0400
commit2e80d9ccc056dc301bd6748234a13106f877d4f4 (patch)
tree3d94715cf66f9052e55ab57d1ee2e267c9307f1d /intern
parentd0f4c9639450ec1b90e7041e3d9c30e4927a745d (diff)
Fix #32018: non-progressive integrator crash.
Diffstat (limited to 'intern')
-rw-r--r--intern/cycles/render/integrator.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/intern/cycles/render/integrator.cpp b/intern/cycles/render/integrator.cpp
index da563c9c4ec..699e6979990 100644
--- a/intern/cycles/render/integrator.cpp
+++ b/intern/cycles/render/integrator.cpp
@@ -123,6 +123,8 @@ void Integrator::device_update(Device *device, DeviceScene *dscene, Scene *scene
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);