mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-06 11:39:49 -06:00
Add check for usage of ghoul_assert instead of plain old assert
Update Ghoul
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user