gpu: ensure the thing that the assert catches, just for release builds so that people wont find subtle errors. we really need better error and info reporting facilities.

This commit is contained in:
zeromus 2009-05-21 14:59:19 +00:00
parent 698cfe1f93
commit 6323e05bd6
1 changed files with 3 additions and 0 deletions

View File

@ -1341,6 +1341,9 @@ static void setFinalOBJColorSpecialDecreaseWnd(GPU *gpu, u32 passing, u8 *dst, u
FORCEINLINE void GPU::setFinalColorBG(u16 color, u8 x)
{
assert((color&0x8000)==0);
//in order to keep release builds from creating subtle errors which we will waste time tracking down,
//lets just go ahead and do this until we have proof that we dont have to
color &= 0x7FFF;
//if someone disagrees with these, they could be reimplemented as a function pointer easily
bool draw=true;