aboutsummaryrefslogtreecommitdiff
path: root/NvCloth/src/cuda/CuCloth.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'NvCloth/src/cuda/CuCloth.cpp')
-rw-r--r--NvCloth/src/cuda/CuCloth.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/NvCloth/src/cuda/CuCloth.cpp b/NvCloth/src/cuda/CuCloth.cpp
index 3e6175b..4131b04 100644
--- a/NvCloth/src/cuda/CuCloth.cpp
+++ b/NvCloth/src/cuda/CuCloth.cpp
@@ -423,7 +423,7 @@ void CuCloth::clearParticleAccelerations()
{
CuContextLock contextLock(mFactory);
CuDeviceVector<PxVec4>(mFactory.mContext).swap(mParticleAccelerations);
- CuHostVector<PxVec4, CU_MEMHOSTALLOC_DEVICEMAP>::Type().swap(mParticleAccelerationsHostCopy);
+ CuHostVector<PxVec4, CU_MEMHOSTALLOC_DEVICEMAP>::Type(mFactory.mContext).swap(mParticleAccelerationsHostCopy);
wakeUp();
}