[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [46159] trunk/blender/intern/cycles/bvh/ bvh_build.cpp: Fix #31202: cycles crash in new BVH builder on Windows, when compiling with

Brecht Van Lommel brechtvanlommel at pandora.be
Tue May 1 19:17:17 CEST 2012


Revision: 46159
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=46159
Author:   blendix
Date:     2012-05-01 17:17:17 +0000 (Tue, 01 May 2012)
Log Message:
-----------
Fix #31202: cycles crash in new BVH builder on Windows, when compiling with
debug info.

Modified Paths:
--------------
    trunk/blender/intern/cycles/bvh/bvh_build.cpp

Modified: trunk/blender/intern/cycles/bvh/bvh_build.cpp
===================================================================
--- trunk/blender/intern/cycles/bvh/bvh_build.cpp	2012-05-01 16:19:13 UTC (rev 46158)
+++ trunk/blender/intern/cycles/bvh/bvh_build.cpp	2012-05-01 17:17:17 UTC (rev 46159)
@@ -175,7 +175,7 @@
 	}
 	else {
 		/* multithreaded binning build */
-		BVHObjectBinning rootbin(root, &references[0]);
+		BVHObjectBinning rootbin(root, (references.size())? &references[0]: NULL);
 		rootnode = build_node(rootbin, 0);
 		task_pool.wait();
 	}




More information about the Bf-blender-cvs mailing list