diff options
author | Stefan Werner <stefan.werner@tangent-animation.com> | 2020-09-01 15:47:34 +0300 |
---|---|---|
committer | Stefan Werner <stefan.werner@tangent-animation.com> | 2020-09-01 22:00:55 +0300 |
commit | 009971ba7adc9603b90e9bf99b6b6d53eeae6c3a (patch) | |
tree | 0034d9a0a5703069816439564729a17740e0e727 /intern/cycles/bvh/bvh.h | |
parent | f2d26409e83b1769c3a4baa2e5fa80e944f74678 (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.h | 3 |
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 ¶ms, const vector<Geometry *> &geometry, - const vector<Object *> &objects); + const vector<Object *> &objects, + const Device *device); virtual ~BVH() { } |