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>2011-09-01 23:00:23 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2011-09-01 23:00:23 +0400
commit27102bfec4845df5ba8e65f7ca64d04840fbeab3 (patch)
treed83efbd5211512c4c504020b3e6f99b4332b62c9 /intern/cycles/device/device_opencl.cpp
parentaf7171524ab6809a5ebe51c3cbfdff17e2cd74aa (diff)
Cycles: OpenCL library is now dynamically loaded so that blender doesn't crash
if it's not installed on the system. Code copied from clew.h/clew.c in CLCC: http://clcc.sourceforge.net/
Diffstat (limited to 'intern/cycles/device/device_opencl.cpp')
-rw-r--r--intern/cycles/device/device_opencl.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/intern/cycles/device/device_opencl.cpp b/intern/cycles/device/device_opencl.cpp
index 34c92986f46..d67fdc970a9 100644
--- a/intern/cycles/device/device_opencl.cpp
+++ b/intern/cycles/device/device_opencl.cpp
@@ -22,18 +22,11 @@
#include <stdlib.h>
#include <string.h>
-#ifdef __APPLE__
-#include <cl.h>
-#include <cl_ext.h>
-#else
-#include <CL/cl.h>
-#include <CL/cl_ext.h>
-#endif
-
#include "device.h"
#include "device_intern.h"
#include "util_map.h"
+#include "util_opencl.h"
#include "util_opengl.h"
#include "util_path.h"
#include "util_time.h"
@@ -150,7 +143,6 @@ public:
string build_options = "";
- string csource = "../blender/intern/cycles";
build_options += "-I " + path_get("kernel") + " -I " + path_get("util"); /* todo: escape path */
build_options += " -Werror -cl-fast-relaxed-math -cl-strict-aliasing";