diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2012-11-06 23:58:51 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2012-11-06 23:58:51 +0400 |
commit | ccffb6811c9db614047e9dba0eb5e509609128dc (patch) | |
tree | ca8dfd75e6127419310ffda3446fe16d30716003 /intern | |
parent | 64467e3ffa250233b25d14d1b46927c54780eefd (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.
Diffstat (limited to 'intern')
-rw-r--r-- | intern/cycles/util/util_opencl.cpp | 4 |
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) { |