From 145cd88fcd3ab3e16862b90c932175a5b6e17636 Mon Sep 17 00:00:00 2001 From: Marijn Tamis Date: Thu, 13 Jun 2019 11:54:31 +0200 Subject: Fix PxAssertHandler namespace issue when compiling with PhysX 4.1. --- NvCloth/src/Callbacks.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'NvCloth/src/Callbacks.cpp') diff --git a/NvCloth/src/Callbacks.cpp b/NvCloth/src/Callbacks.cpp index 7a3d28a..14c7d99 100644 --- a/NvCloth/src/Callbacks.cpp +++ b/NvCloth/src/Callbacks.cpp @@ -43,13 +43,13 @@ struct NvClothContext { physx::PxAllocatorCallback* mAllocator; physx::PxErrorCallback* mErrorCallback; - physx::PxAssertHandler* mAssertHandler; + nv::cloth::PxAssertHandler* mAssertHandler; physx::PxProfilerCallback* mProfilerCallback; }; static NvClothContext sContext; -NV_CLOTH_API(void) InitializeNvCloth(physx::PxAllocatorCallback* allocatorCallback, physx::PxErrorCallback* errorCallback, physx::PxAssertHandler* assertHandler, physx::PxProfilerCallback* profilerCallback, int autoDllIDCheck) +NV_CLOTH_API(void) InitializeNvCloth(physx::PxAllocatorCallback* allocatorCallback, physx::PxErrorCallback* errorCallback, nv::cloth::PxAssertHandler* assertHandler, physx::PxProfilerCallback* profilerCallback, int autoDllIDCheck) { PX_UNUSED(autoDllIDCheck); NV_CLOTH_ASSERT_WITH_MESSAGE("NvCloth dll id mismatch, ensure you compile with matching headers/run with matching dll.", NV_CLOTH_DLL_ID == autoDllIDCheck); @@ -117,7 +117,7 @@ void LogInfoFn(const char* fileName, int lineNumber, const char* msg, ...) va_end(args); } -NV_CLOTH_API(physx::PxAssertHandler*) GetNvClothAssertHandler() +NV_CLOTH_API(nv::cloth::PxAssertHandler*) GetNvClothAssertHandler() { return sContext.mAssertHandler; } -- cgit v1.2.3