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:
authorStefan Werner <stefan.werner@tangent-animation.com>2020-09-01 15:47:34 +0300
committerStefan Werner <stefan.werner@tangent-animation.com>2020-09-01 22:00:55 +0300
commit009971ba7adc9603b90e9bf99b6b6d53eeae6c3a (patch)
tree0034d9a0a5703069816439564729a17740e0e727 /intern/cycles/bvh/bvh.h
parentf2d26409e83b1769c3a4baa2e5fa80e944f74678 (diff)
Cycles: Separate Embree device for each CPU Device.
Before, Cycles was using a shared Embree device across all instances. This could result in crashes when viewport rendering and material preview were using Cycles simultaneously. Fixes issue T80042 Maniphest Tasks: T80042 Differential Revision: https://developer.blender.org/D8772
Diffstat (limited to 'intern/cycles/bvh/bvh.h')
-rw-r--r--intern/cycles/bvh/bvh.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/intern/cycles/bvh/bvh.h b/intern/cycles/bvh/bvh.h
index 6639e06b0bc..033b1fd8e04 100644
--- a/intern/cycles/bvh/bvh.h
+++ b/intern/cycles/bvh/bvh.h
@@ -89,7 +89,8 @@ class BVH {
static BVH *create(const BVHParams &params,
const vector<Geometry *> &geometry,
- const vector<Object *> &objects);
+ const vector<Object *> &objects,
+ const Device *device);
virtual ~BVH()
{
}