diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-04-20 16:03:39 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-04-20 16:03:39 +0300 |
commit | 96dc96f0a5d2b90d21bafde94da63ff8fdd47048 (patch) | |
tree | ad0fe8f54651c42bca8f1606b29b150d99297b63 /intern | |
parent | 48c9208d56de08103e789ac5f8df0ccf19506f3e (diff) |
Cycles: Avoid reference copy
Diffstat (limited to 'intern')
-rw-r--r-- | intern/cycles/bvh/bvh_binning.cpp | 2 |
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) { |