[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [51949] trunk/blender/intern/cycles/util/ util_opencl.cpp: Cycles: disable OpenCL in builds for now, since it' s not working and is only

Brecht Van Lommel brechtvanlommel at pandora.be
Tue Nov 6 20:58:52 CET 2012


Revision: 51949
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=51949
Author:   blendix
Date:     2012-11-06 19:58:51 +0000 (Tue, 06 Nov 2012)
Log Message:
-----------
Cycles: disable OpenCL in builds for now, since it's not working and is only
confusing users at this point. For experiments you can define the
CYCLES_OPENCL_TEST environment variable to make it show up in the UI.

Modified Paths:
--------------
    trunk/blender/intern/cycles/util/util_opencl.cpp

Modified: trunk/blender/intern/cycles/util/util_opencl.cpp
===================================================================
--- trunk/blender/intern/cycles/util/util_opencl.cpp	2012-11-06 19:58:48 UTC (rev 51948)
+++ trunk/blender/intern/cycles/util/util_opencl.cpp	2012-11-06 19:58:51 UTC (rev 51949)
@@ -140,6 +140,10 @@
 #endif
 	int error = 0;
 
+	// OpenCL disabled for now, only works with this environment variable set
+	if(!getenv("CYCLES_OPENCL_TEST"))
+		return 0;
+
 	//  Check if already initialized
 	if (module != NULL)
 	{




More information about the Bf-blender-cvs mailing list