diff options
Diffstat (limited to 'NvCloth/src/dx/DxFabric.cpp')
| -rw-r--r-- | NvCloth/src/dx/DxFabric.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/NvCloth/src/dx/DxFabric.cpp b/NvCloth/src/dx/DxFabric.cpp index f5adeaf..c168aa4 100644 --- a/NvCloth/src/dx/DxFabric.cpp +++ b/NvCloth/src/dx/DxFabric.cpp @@ -60,7 +60,7 @@ cloth::DxFabric::DxFabric(DxFactory& 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())); //constraints { @@ -107,7 +107,7 @@ cloth::DxFabric::DxFabric(DxFactory& factory, uint32_t numParticles, Range<const // tethers NV_CLOTH_ASSERT(anchors.size() == tetherLengths.size()); mTetherLengthScale = - tetherLengths.empty() ? 1.0f : *shdfnd::maxElement(tetherLengths.begin(), tetherLengths.end()) / USHRT_MAX; + tetherLengths.empty() ? 1.0f : *ps::maxElement(tetherLengths.begin(), tetherLengths.end()) / USHRT_MAX; float inverseScale = 1 / (mTetherLengthScale + FLT_EPSILON); Vector<DxTether>::Type tethers; tethers.reserve(anchors.size()); |