diff options
| author | Marijn Tamis <[email protected]> | 2017-04-28 14:19:07 +0200 |
|---|---|---|
| committer | Marijn Tamis <[email protected]> | 2017-04-28 14:19:07 +0200 |
| commit | b350eb5f4d44e8448115796144375d79438d74ae (patch) | |
| tree | 8e102e8c28f45a1b87bd335ceee4f33c3d4ee7c2 /NvCloth/src/TripletScheduler.cpp | |
| parent | Add visual samples. (diff) | |
| download | nvcloth-b350eb5f4d44e8448115796144375d79438d74ae.tar.xz nvcloth-b350eb5f4d44e8448115796144375d79438d74ae.zip | |
NvCloth 1.1.0 Release. (22041545)
Diffstat (limited to 'NvCloth/src/TripletScheduler.cpp')
| -rw-r--r-- | NvCloth/src/TripletScheduler.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/NvCloth/src/TripletScheduler.cpp b/NvCloth/src/TripletScheduler.cpp index e051131..999be0e 100644 --- a/NvCloth/src/TripletScheduler.cpp +++ b/NvCloth/src/TripletScheduler.cpp @@ -207,7 +207,10 @@ void cloth::TripletScheduler::warp(uint32_t numParticles, uint32_t warpWidth) numReplays += set.mNumReplays[i] == set.mNumConflicts[i][warpMask & (*tIt)[i]]; if (minReplays > numReplays) - minReplays = numReplays, bestIndex = setIndex; + { + minReplays = numReplays; + bestIndex = setIndex; + } } // add new set if none found |