From ccffb6811c9db614047e9dba0eb5e509609128dc Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Tue, 6 Nov 2012 19:58:51 +0000 Subject: [PATCH] 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. --- intern/cycles/util/util_opencl.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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) {