diff options
| author | Miles Macklin <[email protected]> | 2017-06-09 13:41:15 +1200 |
|---|---|---|
| committer | Miles Macklin <[email protected]> | 2017-06-09 13:41:15 +1200 |
| commit | 688b5f42e9bfe498d7af7075d4d8f4429867f3a3 (patch) | |
| tree | 7e0d0e7c95298f0418723abd92f61ac6e16b055e /extensions/dx/flexExt.cpp | |
| parent | Update README.md (diff) | |
| download | flex-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.cpp | 2 |
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); |