aboutsummaryrefslogtreecommitdiff
path: root/PhysX_3.4/Snippets/SnippetImmediateMode/SnippetImmediateMode.cpp
diff options
context:
space:
mode:
authorSheikh Dawood Abdul Ajees <[email protected]>2017-04-25 16:02:08 -0500
committerSheikh Dawood Abdul Ajees <[email protected]>2017-04-25 16:02:08 -0500
commitd11708e398c2f6377d9eac2b1f7248c62faab569 (patch)
tree5778e794690c046ab4b0205d8f764960a5af168b /PhysX_3.4/Snippets/SnippetImmediateMode/SnippetImmediateMode.cpp
parentPhysX 3.4, APEX 1.4 patch release @21821222 (diff)
downloadphysx-3.4-d11708e398c2f6377d9eac2b1f7248c62faab569.tar.xz
physx-3.4-d11708e398c2f6377d9eac2b1f7248c62faab569.zip
PhysX 3.4, APEX 1.4 patch release @22017166
Diffstat (limited to 'PhysX_3.4/Snippets/SnippetImmediateMode/SnippetImmediateMode.cpp')
-rw-r--r--PhysX_3.4/Snippets/SnippetImmediateMode/SnippetImmediateMode.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/PhysX_3.4/Snippets/SnippetImmediateMode/SnippetImmediateMode.cpp b/PhysX_3.4/Snippets/SnippetImmediateMode/SnippetImmediateMode.cpp
index b3f12eb5..749af51f 100644
--- a/PhysX_3.4/Snippets/SnippetImmediateMode/SnippetImmediateMode.cpp
+++ b/PhysX_3.4/Snippets/SnippetImmediateMode/SnippetImmediateMode.cpp
@@ -38,12 +38,12 @@
#include "PxPhysicsAPI.h"
-#include "../SnippetCommon/SnippetPrint.h"
#include "../SnippetCommon/SnippetPVD.h"
#include "../SnippetUtils/SnippetUtils.h"
#include "PsArray.h"
#include "PxImmediateMode.h"
#include "extensions/PxMassProperties.h"
+#include "../SnippetCommon/SnippetPrint.h"
//Enables whether we want persistent state caching (contact cache, friction caching) or not. Avoiding persistency results in one-shot collision detection and zero friction
//correlation but simplifies code by not longer needing to cache persistent pairs.
@@ -969,6 +969,11 @@ void cleanupPhysics(bool interactive)
gPvd->release();
transport->release();
}
+ if (gCooking)
+ {
+ gCooking->release();
+ gCooking = NULL;
+ }
delete gCacheAllocator;
delete gConstraintAllocator;
@@ -985,7 +990,7 @@ void cleanupPhysics(bool interactive)
- printf("SnippetHelloWorld done.\n");
+ printf("SnippetImmediateMode done.\n");
}
void keyPress(const char key, const PxTransform& camera)