aboutsummaryrefslogtreecommitdiff
path: root/extensions/dx/flexExt.cpp
diff options
context:
space:
mode:
authorMiles Macklin <[email protected]>2017-06-09 13:41:15 +1200
committerMiles Macklin <[email protected]>2017-06-09 13:41:15 +1200
commit688b5f42e9bfe498d7af7075d4d8f4429867f3a3 (patch)
tree7e0d0e7c95298f0418723abd92f61ac6e16b055e /extensions/dx/flexExt.cpp
parentUpdate README.md (diff)
downloadflex-1.2.0.beta.1.tar.xz
flex-1.2.0.beta.1.zip
1.2.0.beta.11.2.0.beta.1
Diffstat (limited to 'extensions/dx/flexExt.cpp')
-rw-r--r--extensions/dx/flexExt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/dx/flexExt.cpp b/extensions/dx/flexExt.cpp
index 4dcc0e4..2b340cc 100644
--- a/extensions/dx/flexExt.cpp
+++ b/extensions/dx/flexExt.cpp
@@ -175,7 +175,7 @@ void NvFlexExtSetForceFields(NvFlexExtForceFieldCallback* c, const NvFlexExtForc
if (numForceFields > 0)
{
// update staging buffer
- void* dstPtr = c->mContext->mapUpload(c->mForceFieldsGpu);
+ void* dstPtr = c->mContext->map(c->mForceFieldsGpu, NvFlex::eMapWrite);
memcpy(dstPtr, forceFields, numForceFields*sizeof(NvFlexExtForceField));
c->mContext->unmap(c->mForceFieldsGpu);