Work on Volume class.

This commit is contained in:
David Williams
2009-03-24 22:29:39 +00:00
parent d191902db3
commit 5955a29a46
6 changed files with 34 additions and 21 deletions

View File

@ -30,11 +30,11 @@ namespace PolyVox
//If this is not the case then the output is undefined.
uint8 logBase2(uint32 uInput)
{
//Debug mode error handling
//Debug mode validation
assert(uInput != 0);
assert(isPowerOf2(uInput));
//Release mode error handling
//Release mode validation
if(uInput == 0)
{
throw std::invalid_argument("Cannot compute the log of zero.");