From ef6937e69e8ee3f409cf9d460d5ad300a65d5924 Mon Sep 17 00:00:00 2001 From: sschirm Date: Fri, 23 Dec 2016 14:20:36 +0100 Subject: PhysX 3.4 / APEX 1.4 release candidate @21506124 --- PhysX_3.4/Source/PhysXCooking/src/mesh/RTreeCooking.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'PhysX_3.4/Source/PhysXCooking/src/mesh/RTreeCooking.cpp') 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 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; -- cgit v1.2.3