aboutsummaryrefslogtreecommitdiff
path: root/PhysX_3.4/Source/PhysXCooking/src/mesh/RTreeCooking.cpp
diff options
context:
space:
mode:
authorsschirm <[email protected]>2016-12-23 14:20:36 +0100
committersschirm <[email protected]>2016-12-23 14:56:17 +0100
commitef6937e69e8ee3f409cf9d460d5ad300a65d5924 (patch)
tree710426e8daa605551ce3f34b581897011101c30f /PhysX_3.4/Source/PhysXCooking/src/mesh/RTreeCooking.cpp
parentInitial commit: (diff)
downloadphysx-3.4-ef6937e69e8ee3f409cf9d460d5ad300a65d5924.tar.xz
physx-3.4-ef6937e69e8ee3f409cf9d460d5ad300a65d5924.zip
PhysX 3.4 / APEX 1.4 release candidate @21506124
Diffstat (limited to 'PhysX_3.4/Source/PhysXCooking/src/mesh/RTreeCooking.cpp')
-rw-r--r--PhysX_3.4/Source/PhysXCooking/src/mesh/RTreeCooking.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/PhysX_3.4/Source/PhysXCooking/src/mesh/RTreeCooking.cpp b/PhysX_3.4/Source/PhysXCooking/src/mesh/RTreeCooking.cpp
index 08ab1a1b..faa56b70 100644
--- a/PhysX_3.4/Source/PhysXCooking/src/mesh/RTreeCooking.cpp
+++ b/PhysX_3.4/Source/PhysXCooking/src/mesh/RTreeCooking.cpp
@@ -28,6 +28,7 @@
// Copyright (c) 2001-2004 NovodeX AG. All rights reserved.
#include "foundation/PxBounds3.h"
+#include "foundation/PxMemory.h"
#include "CmPhysXCommon.h"
#include "RTreeCooking.h"
#include "PsSort.h"
@@ -748,9 +749,9 @@ static void buildFromBounds(
if(hint == PxMeshCookingHint::eSIM_PERFORMANCE) // use high quality SAH build
{
Array<PxU32> xRanks(numBounds), yRanks(numBounds), zRanks(numBounds), xOrder(numBounds), yOrder(numBounds), zOrder(numBounds);
- memcpy(xOrder.begin(), permute.begin(), sizeof(xOrder[0])*numBounds);
- memcpy(yOrder.begin(), permute.begin(), sizeof(yOrder[0])*numBounds);
- memcpy(zOrder.begin(), permute.begin(), sizeof(zOrder[0])*numBounds);
+ PxMemCopy(xOrder.begin(), permute.begin(), sizeof(xOrder[0])*numBounds);
+ PxMemCopy(yOrder.begin(), permute.begin(), sizeof(yOrder[0])*numBounds);
+ PxMemCopy(zOrder.begin(), permute.begin(), sizeof(zOrder[0])*numBounds);
// sort by shuffling the permutation, precompute sorted ranks for x,y,z-orders
Ps::sort(xOrder.begin(), xOrder.size(), SortBoundsPredicate(0, allBounds));
for(PxU32 i = 0; i < numBounds; i++) xRanks[xOrder[i]] = i;