- Fixed memory leak when creating terrain with physx 3

- Fixed terrain tessellation with physx 3
This commit is contained in:
rextimmy 2014-11-08 14:08:59 +10:00
parent b0c83601d1
commit 664595ef9e

View file

@ -191,9 +191,9 @@ bool Px3Collision::addHeightfield( const U16 *heights,
int flag = ( column + tess ) % 2;
if(flag)
currentSample->setTessFlag();
else
currentSample->clearTessFlag();
else
currentSample->setTessFlag();
currentByte += heightFieldDesc.samples.stride;
}
@ -211,5 +211,7 @@ bool Px3Collision::addHeightfield( const U16 *heights,
desc->pose = pose2;
mColShapes.push_back(desc);
SAFE_DELETE(samples);
return true;
}