aboutsummaryrefslogtreecommitdiff
path: root/PhysX_3.4/Source/GeomUtils/src/GuSerialize.cpp
diff options
context:
space:
mode:
authorSheikh Dawood Abdul Ajees <[email protected]>2018-01-26 19:43:03 -0600
committerSheikh Dawood Abdul Ajees <[email protected]>2018-01-26 19:43:03 -0600
commitb6db9a56548cd1c41bee309e721d76ea2c9320da (patch)
tree1f0436b187db50c21e576b4f4d491530113c91bc /PhysX_3.4/Source/GeomUtils/src/GuSerialize.cpp
parentPhysX 3.4.1, APEX 1.4.1 Release @23307153 (diff)
downloadphysx-3.4-b6db9a56548cd1c41bee309e721d76ea2c9320da.tar.xz
physx-3.4-b6db9a56548cd1c41bee309e721d76ea2c9320da.zip
PhysX 3.4, APEX 1.4 patch release @23472123
Diffstat (limited to 'PhysX_3.4/Source/GeomUtils/src/GuSerialize.cpp')
-rw-r--r--PhysX_3.4/Source/GeomUtils/src/GuSerialize.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/PhysX_3.4/Source/GeomUtils/src/GuSerialize.cpp b/PhysX_3.4/Source/GeomUtils/src/GuSerialize.cpp
index 244795ff..90285695 100644
--- a/PhysX_3.4/Source/GeomUtils/src/GuSerialize.cpp
+++ b/PhysX_3.4/Source/GeomUtils/src/GuSerialize.cpp
@@ -365,16 +365,9 @@ void Gu::ReadIndices(PxU16 maxIndex, PxU32 nbIndices, PxU16* indices, PxInputStr
stream.read(tmp, nbIndices*sizeof(PxU8));
for(PxU32 i=0;i<nbIndices;i++)
indices[i] = tmp[i];
-// for(PxU32 i=0;i<nbIndices;i++)
-// indices[i] = stream.ReadByte();
}
else
{
- PxU16* tmp = reinterpret_cast<PxU16*>(PxAlloca(nbIndices*sizeof(PxU16)));
- readWordBuffer(tmp, nbIndices, platformMismatch, stream);
- for(PxU32 i=0;i<nbIndices;i++)
- indices[i] = tmp[i];
-// for(PxU32 i=0;i<nbIndices;i++)
-// indices[i] = ReadWord(platformMismatch, stream);
+ readWordBuffer(indices, nbIndices, platformMismatch, stream);
}
}