diff options
-rw-r--r-- | intern/cycles/device/device_opencl.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/intern/cycles/device/device_opencl.cpp b/intern/cycles/device/device_opencl.cpp index d6b1ab38bd0..0db11e07c8b 100644 --- a/intern/cycles/device/device_opencl.cpp +++ b/intern/cycles/device/device_opencl.cpp @@ -1385,7 +1385,7 @@ public: protected: string kernel_build_options(const string *debug_src = NULL) { - string build_options = " -cl-fast-relaxed-math "; + string build_options = "-cl-fast-relaxed-math "; if(platform_name == "NVIDIA CUDA") { build_options += "-D__KERNEL_OPENCL_NVIDIA__ " @@ -1555,9 +1555,9 @@ protected: { string build_options = ""; if(requested_features.experimental) { - build_options += " -D__KERNEL_EXPERIMENTAL__"; + build_options += "-D__KERNEL_EXPERIMENTAL__ "; } - build_options += " -D__NODES_MAX_GROUP__=" + + build_options += "-D__NODES_MAX_GROUP__=" + string_printf("%d", requested_features.max_nodes_group); build_options += " -D__NODES_FEATURES__=" + string_printf("%d", requested_features.nodes_features); |