diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2012-10-22 18:04:44 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2012-10-22 18:04:44 +0400 |
commit | 57b7f405a4306d6c8b29fc6cdfc16ab9eb58279a (patch) | |
tree | 4306382df42e32b559024cefcfaffae5fe3074ee /intern/cycles/util | |
parent | b5e85cae705f47ae5a32c97564e1942a95e75bb4 (diff) |
Fix related to #32929: update list of available devices for cycles rendering
while Blender is running, not only on load. It might help a case when Blender
is started before the CUDA driver is fully initialized.
Diffstat (limited to 'intern/cycles/util')
-rw-r--r-- | intern/cycles/util/util_task.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/intern/cycles/util/util_task.h b/intern/cycles/util/util_task.h index 401a503f540..a2f284479c7 100644 --- a/intern/cycles/util/util_task.h +++ b/intern/cycles/util/util_task.h @@ -95,6 +95,7 @@ public: static void exit(); static int num_threads() { return threads.size(); } + static bool active() { return users != 0; } protected: friend class TaskPool; |