diff options
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); |