From 2e80d9ccc056dc301bd6748234a13106f877d4f4 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Wed, 19 Sep 2012 17:09:11 +0000 Subject: Fix #32018: non-progressive integrator crash. --- intern/cycles/render/integrator.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'intern/cycles/render') 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); -- cgit v1.2.3