aboutsummaryrefslogtreecommitdiff
path: root/PhysX_3.4/Source/GeomUtils/src/mesh/GuBV4Build.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/GeomUtils/src/mesh/GuBV4Build.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/GeomUtils/src/mesh/GuBV4Build.cpp')
-rw-r--r--PhysX_3.4/Source/GeomUtils/src/mesh/GuBV4Build.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/PhysX_3.4/Source/GeomUtils/src/mesh/GuBV4Build.cpp b/PhysX_3.4/Source/GeomUtils/src/mesh/GuBV4Build.cpp
index fbe97042..48e14eab 100644
--- a/PhysX_3.4/Source/GeomUtils/src/mesh/GuBV4Build.cpp
+++ b/PhysX_3.4/Source/GeomUtils/src/mesh/GuBV4Build.cpp
@@ -28,6 +28,7 @@
// Copyright (c) 2001-2004 NovodeX AG. All rights reserved.
#include "foundation/PxVec4.h"
+#include "foundation/PxMemory.h"
#include "GuBV4Build.h"
#include "GuBV4.h"
#include "PxTriangle.h"
@@ -1188,7 +1189,7 @@ static bool BuildBV4Internal(BV4Tree& tree, const AABBTree& Source, SourceMesh*
{
PX_ASSERT(sizeof(BVDataSwizzled)==sizeof(BVDataPacked)*4);
BVDataPacked* Copy = PX_NEW(BVDataPacked)[NbNeeded];
- memcpy(Copy, Nodes, sizeof(BVDataPacked)*NbNeeded);
+ PxMemCopy(Copy, Nodes, sizeof(BVDataPacked)*NbNeeded);
for(PxU32 i=0;i<NbNeeded/4;i++)
{
const BVDataPacked* Src = Copy + i*4;