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-09-03 16:52:21 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2012-09-03 16:52:21 +0400
commitd6ec4b874b99f096ce2aa1c2864609bb2e4b58ad (patch)
treeee1a946ec1c16be728dfe121d66777f53e87c0f3 /source/blender/compositor/intern/COM_WorkScheduler.h
parent9fbc1c31496f2ac3d8a7e71ef84cd91353c6c7fb (diff)
Compositor: initialize OpenCL only when the option is enabled. This eliminates
error prints or even crashes for poor OpenCL implementations when not using it.
Diffstat (limited to 'source/blender/compositor/intern/COM_WorkScheduler.h')
-rw-r--r--source/blender/compositor/intern/COM_WorkScheduler.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/compositor/intern/COM_WorkScheduler.h b/source/blender/compositor/intern/COM_WorkScheduler.h
index f56fe94201e..4ab23cf9ae4 100644
--- a/source/blender/compositor/intern/COM_WorkScheduler.h
+++ b/source/blender/compositor/intern/COM_WorkScheduler.h
@@ -74,8 +74,10 @@ public:
* After mutex initialization the system is queried in order to count the number of CPUDevices and GPUDevices to be created.
* For every hardware thread a CPUDevice and for every OpenCL GPU device a OpenCLDevice is created.
* these devices are stored in a separate list (cpudevices & gpudevices)
+ *
+ * This function can be called multiple times to lazily initialize OpenCL.
*/
- static void initialize();
+ static void initialize(bool use_opencl);
/**
* @brief deinitialize the WorkScheduler