Add check for usage of ghoul_assert instead of plain old assert

Update Ghoul
This commit is contained in:
Alexander Bock
2017-11-16 16:12:54 -05:00
parent 0ff9c93512
commit 669078201a
10 changed files with 52 additions and 31 deletions

View File

@@ -311,7 +311,7 @@ bool SimpleTfBrickSelector::calculateBrickImportances() {
float x = static_cast<float>(i) / static_cast<float>(tfWidth);
float sample = histogram->interpolate(x);
assert(sample >= 0);
ghoul_assert(sample >= 0, "@MISSING");
dotProduct += sample * tf->sample(i).w;
}
_brickImportances[brickIndex] = dotProduct;