From: Orhun B. <orh...@gm...> - 2008-08-27 16:00:23
|
Is assert a code path? I think it is not. I mean that`s the whole point, the code should have a single path. I always thought unit tests are for release (i.e production), so there will be no error behavior (i.e. assert) in release builds. If this is a problem then I would suggest to remove the assert all together. More on removing the assert: Inverse operation is not something you use when you are a newbie (drawing a cube does not require one or at least not in CPU). When you start using matrix inverses, a well placed, briefly commented assert(glmMatDeterm4f (m) != 0) [or something similar] in a glsdk tutorial will not confuse anybody. Or will it? -- Orhun Birsoy |