NVIDIAGameWorks / NvCloth

300 stars 53 forks source link

DX solver doesn't invalidate mClothDatas after sorting cloth instances #67

Open BartmanAbyss opened 1 year ago

BartmanAbyss commented 1 year ago

https://github.com/NVIDIAGameWorks/NvCloth/blob/d6d71755dde86dc837f3e4d5f727e05730ee7453/NvCloth/src/dx/DxSolver.cpp#L268-L278

needs

    // maybe we got sorted
    for(auto& cd : mCloths)
        cd->notifyChanged();

afterwards.

Without the fix it crashed the GPU.