aboutsummaryrefslogtreecommitdiff
path: root/APEX_1.4/module
diff options
context:
space:
mode:
authorSheikh Dawood Abdul Ajees <[email protected]>2017-09-15 15:41:57 -0500
committerSheikh Dawood Abdul Ajees <[email protected]>2017-09-15 15:41:57 -0500
commitd1c812f1162e5fdb13c215792725b2591d7428f5 (patch)
tree407056c45c7e9320c48fca6a3697d81a061c4ea0 /APEX_1.4/module
parentPhysX 3.4, APEX 1.4 patch release @22121272 (diff)
downloadphysx-3.4-3.4.1.tar.xz
physx-3.4-3.4.1.zip
PhysX 3.4.1, APEX 1.4.1 Release @22845541v3.4.1
Diffstat (limited to 'APEX_1.4/module')
-rw-r--r--APEX_1.4/module/clothing/src/ClothingActorImpl.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/APEX_1.4/module/clothing/src/ClothingActorImpl.cpp b/APEX_1.4/module/clothing/src/ClothingActorImpl.cpp
index 9d57a938..027a9588 100644
--- a/APEX_1.4/module/clothing/src/ClothingActorImpl.cpp
+++ b/APEX_1.4/module/clothing/src/ClothingActorImpl.cpp
@@ -3740,6 +3740,11 @@ void ClothingActorImpl::updateRenderProxy()
PX_PROFILE_ZONE("ClothingActorImpl::updateRenderProxy", GetInternalApexSDK()->getContextId());
PX_ASSERT(mGraphicalMeshes[mCurrentGraphicalLodId].renderProxy == NULL);
+ if (mGraphicalMeshes[mCurrentGraphicalLodId].renderProxy)
+ {
+ mGraphicalMeshes[mCurrentGraphicalLodId].renderProxy->release();
+ }
+
// get a new render proxy from the pool
RenderMeshAssetIntl* renderMeshAsset = mAsset->getGraphicalMesh(mCurrentGraphicalLodId);
ClothingRenderProxyImpl* renderProxy = mClothingScene->getRenderProxy(renderMeshAsset, mActorDesc->fallbackSkinning, mClothingSimulation != NULL,