diff options
| author | Marijn Tamis <[email protected]> | 2019-04-29 16:21:42 +0200 |
|---|---|---|
| committer | Marijn Tamis <[email protected]> | 2019-04-29 16:21:42 +0200 |
| commit | 90963f4c0a38c705fe85101f2be5fdd09911b10f (patch) | |
| tree | 34ca6c9e642ce4998612e3ee5bf3264a57c21277 /NvCloth/src/SwFabric.cpp | |
| parent | 1.1.6 Release. (diff) | |
| download | nvcloth-90963f4c0a38c705fe85101f2be5fdd09911b10f.tar.xz nvcloth-90963f4c0a38c705fe85101f2be5fdd09911b10f.zip | |
Fix potential namespace issues when using NvCloth together with PhysX.
Diffstat (limited to 'NvCloth/src/SwFabric.cpp')
| -rw-r--r-- | NvCloth/src/SwFabric.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/NvCloth/src/SwFabric.cpp b/NvCloth/src/SwFabric.cpp index bf4b110..f748a9f 100644 --- a/NvCloth/src/SwFabric.cpp +++ b/NvCloth/src/SwFabric.cpp @@ -62,7 +62,7 @@ cloth::SwFabric::SwFabric(SwFactory& factory, uint32_t numParticles, Range<const NV_CLOTH_ASSERT(sets.back() == restvalues.size()); NV_CLOTH_ASSERT(restvalues.size() * 2 == indices.size()); NV_CLOTH_ASSERT(restvalues.size() == stiffnessValues.size() || stiffnessValues.size() == 0); - NV_CLOTH_ASSERT(mNumParticles > *shdfnd::maxElement(indices.begin(), indices.end())); + NV_CLOTH_ASSERT(mNumParticles > *ps::maxElement(indices.begin(), indices.end())); NV_CLOTH_ASSERT(mNumParticles + kSimdWidth - 1 <= USHRT_MAX); mPhases.assign(phaseIndices.begin(), phaseIndices.end()); |