Commit 0ba425f5 authored by Quentin Khan's avatar Quentin Khan

FFmmAlgorithmThreadBalanced: safer loop to get to near field colour loop start

parent 166d9dea
......@@ -536,10 +536,8 @@ protected:
const MortonIndex startIdx = leafcostzones[threadIdx][colourIdx].first;
int zoneCellCount = leafcostzones[threadIdx][colourIdx].second;
if( 0 < zoneCellCount) {
while(startIdx != it.getCurrentGlobalIndex()) {
it.moveRight();
}
if( 0 < zoneCellCount) {
while(startIdx != it.getCurrentGlobalIndex() && it.moveRight());
}
LeafData leafdata;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment