diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-05-21 12:08:03 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-05-21 12:14:59 +0300 |
commit | 6d8aa8505115c03ab2a50489f23fe36dea8cd564 (patch) | |
tree | fa2f1516db28e90d0ae9d13c77521bd3f5783951 /intern/cycles | |
parent | 9f2ae547c0a4f8a230135423e163b22053251f1d (diff) |
Fix too much memory usage for Cycles attribute map.
Thanks to Thomas Krebs for identifying the problem and solution.
Diffstat (limited to 'intern/cycles')
-rw-r--r-- | intern/cycles/render/mesh.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/render/mesh.cpp b/intern/cycles/render/mesh.cpp index 7cfbb7b7c7d..7a9d604244d 100644 --- a/intern/cycles/render/mesh.cpp +++ b/intern/cycles/render/mesh.cpp @@ -1307,7 +1307,7 @@ void MeshManager::update_svm_attributes(Device *, DeviceScene *dscene, Scene *sc return; /* create attribute map */ - uint4 *attr_map = dscene->attributes_map.alloc(attr_map_size*scene->meshes.size()); + uint4 *attr_map = dscene->attributes_map.alloc(attr_map_size); memset(attr_map, 0, dscene->attributes_map.size()*sizeof(uint)); for(size_t i = 0; i < scene->meshes.size(); i++) { |