Skip to content

Commit

Permalink
Merge pull request #2340 from WDog367/fix-argument-buffer-crashes
Browse files Browse the repository at this point in the history
Fix some random crashes when using metal argument buffers
  • Loading branch information
billhollings authored Sep 18, 2024
2 parents 5409e80 + b16c618 commit b3721a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MoltenVK/MoltenVK/Utility/MVKBitArray.h
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ class MVKBitArray {
bool enumerateEnabledBits(bool shouldClear, std::function<bool(size_t bitIndex)> func) {
for (size_t bitIdx = getIndexOfFirstSetBit(shouldClear);
bitIdx < _bitCount;
getIndexOfFirstSetBit(++bitIdx, shouldClear)) {
bitIdx = getIndexOfFirstSetBit(++bitIdx, shouldClear)) {

if ( !func(bitIdx) ) { return false; }
}
Expand Down

0 comments on commit b3721a4

Please sign in to comment.