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
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2012-11-06 23:58:51 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2012-11-06 23:58:51 +0400
commitccffb6811c9db614047e9dba0eb5e509609128dc (patch)
treeca8dfd75e6127419310ffda3446fe16d30716003
parent64467e3ffa250233b25d14d1b46927c54780eefd (diff)
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.
-rw-r--r--intern/cycles/util/util_opencl.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/intern/cycles/util/util_opencl.cpp b/intern/cycles/util/util_opencl.cpp
index 40b637f5cb7..c146c14b10c 100644
--- a/intern/cycles/util/util_opencl.cpp
+++ b/intern/cycles/util/util_opencl.cpp
@@ -140,6 +140,10 @@ int clLibraryInit()
#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)
{