diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-06-18 17:19:16 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-06-18 17:19:16 +0400 |
commit | 484d765bd49e0b7a3370280f5f3b9dac89e5f699 (patch) | |
tree | 6acf41f68cef0be38aedf2e2240258219dd79b71 /intern/cycles/bvh | |
parent | 5fc1d9205afc899aa7a3e6d6cffe3ed9deb88eb7 (diff) |
Cycles: attempt to fix internal compile error with some visual studio builds
Diffstat (limited to 'intern/cycles/bvh')
-rw-r--r-- | intern/cycles/bvh/bvh.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/intern/cycles/bvh/bvh.cpp b/intern/cycles/bvh/bvh.cpp index 69ccf2588c9..dd647fec2d3 100644 --- a/intern/cycles/bvh/bvh.cpp +++ b/intern/cycles/bvh/bvh.cpp @@ -579,6 +579,7 @@ void RegularBVH::pack_nodes(const array<int>& prims, const BVHNode *root) int nextNodeIdx = 0; vector<BVHStackEntry> stack; + stack.reserve(BVHParams::MAX_DEPTH*2); stack.push_back(BVHStackEntry(root, nextNodeIdx++)); while(stack.size()) { @@ -776,6 +777,7 @@ void QBVH::pack_nodes(const array<int>& prims, const BVHNode *root) int nextNodeIdx = 0; vector<BVHStackEntry> stack; + stack.reserve(BVHParams::MAX_DEPTH*2); stack.push_back(BVHStackEntry(root, nextNodeIdx++)); while(stack.size()) { |