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@gmail.com>2018-05-21 12:08:03 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2018-05-21 12:14:59 +0300
commit6d8aa8505115c03ab2a50489f23fe36dea8cd564 (patch)
treefa2f1516db28e90d0ae9d13c77521bd3f5783951 /intern/cycles/render/mesh.cpp
parent9f2ae547c0a4f8a230135423e163b22053251f1d (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/render/mesh.cpp')
-rw-r--r--intern/cycles/render/mesh.cpp2
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++) {