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:
authorSergey Sharybin <sergey.vfx@gmail.com>2016-04-20 16:03:39 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2016-04-20 16:03:39 +0300
commit96dc96f0a5d2b90d21bafde94da63ff8fdd47048 (patch)
treead0fe8f54651c42bca8f1606b29b150d99297b63
parent48c9208d56de08103e789ac5f8df0ccf19506f3e (diff)
Cycles: Avoid reference copy
-rw-r--r--intern/cycles/bvh/bvh_binning.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/bvh/bvh_binning.cpp b/intern/cycles/bvh/bvh_binning.cpp
index 8745e39c21e..b07e870d759 100644
--- a/intern/cycles/bvh/bvh_binning.cpp
+++ b/intern/cycles/bvh/bvh_binning.cpp
@@ -176,7 +176,7 @@ void BVHObjectBinning::split(BVHReference* prims, BVHObjectBinning& left_o, BVHO
prefetch_L2(&prims[start() + l + 8]);
prefetch_L2(&prims[start() + r - 8]);
- BVHReference prim = prims[start() + l];
+ const BVHReference& prim = prims[start() + l];
float3 center = prim.bounds().center2();
if(get_bin(center)[dim] < pos) {