diff --git a/rtcore/common/heuristic_binning.h b/rtcore/common/heuristic_binning.h index 997ac95ae4..7947d3455a 100644 --- a/rtcore/common/heuristic_binning.h +++ b/rtcore/common/heuristic_binning.h @@ -46,10 +46,10 @@ namespace embree __forceinline PrimInfo () : num(0), geomBounds(empty), centBounds(empty) {} - __forceinline PrimInfo (size_t num, BBox3f geomBounds) + __forceinline PrimInfo (size_t num, const BBox3f& geomBounds) : num(num), geomBounds(geomBounds), centBounds(geomBounds) {} - __forceinline PrimInfo (size_t num, BBox3f geomBounds, BBox3f centBounds) + __forceinline PrimInfo (size_t num, const BBox3f& geomBounds, const BBox3f& centBounds) : num(num), geomBounds(geomBounds), centBounds(centBounds) {} /*! returns the number of primitives */ diff --git a/rtcore/common/heuristic_spatial.h b/rtcore/common/heuristic_spatial.h index 81ee4c26ee..5ab45429a4 100644 --- a/rtcore/common/heuristic_spatial.h +++ b/rtcore/common/heuristic_spatial.h @@ -62,19 +62,19 @@ namespace embree __forceinline PrimInfo () : num(0), numFailed(0), geomBounds(empty), centBounds(empty), duplications(NULL) {} - __forceinline PrimInfo (size_t num, BBox3f geomBounds) + __forceinline PrimInfo (size_t num, const BBox3f& geomBounds) : num(num), numFailed(0), geomBounds(geomBounds), centBounds(geomBounds) { duplications = new Atomic(size_t(duplicationPercentage*double(num)/100.0)); } - __forceinline PrimInfo (size_t num, BBox3f geomBounds, BBox3f centBounds) + __forceinline PrimInfo (size_t num, const BBox3f& geomBounds, const BBox3f& centBounds) : num(num), numFailed(0), geomBounds(geomBounds), centBounds(centBounds) { duplications = new Atomic(size_t(duplicationPercentage*double(num)/100.0)); } - __forceinline PrimInfo (size_t num, int numFailed, BBox3f geomBounds, BBox3f centBounds, Atomic* duplications) + __forceinline PrimInfo (size_t num, int numFailed, const BBox3f& geomBounds, const BBox3f& centBounds, Atomic* duplications) : num(num), numFailed(numFailed), geomBounds(geomBounds), centBounds(centBounds), duplications(duplications) {} /*! returns the number of primitives */