gpu: fix 3d blending color effects being applied when they shouldnt be

This commit is contained in:
zeromus 2010-03-17 21:25:11 +00:00
parent 5916d00047
commit 6a27ce1264
1 changed files with 4 additions and 2 deletions

View File

@ -575,7 +575,9 @@ FORCEINLINE FASTCALL void GPU::_master_setFinal3dColor(int dstX, int srcX)
u8* dst = currDst; u8* dst = currDst;
u16 final; u16 final;
bool windowEffect = true; bool windowEffect = blend1; //bomberman land touch dialogbox will fail without setting to blend1
//TODO - should we do an alpha==0 -> bail out entirely check here?
if(WINDOW) if(WINDOW)
{ {
@ -605,7 +607,7 @@ FORCEINLINE FASTCALL void GPU::_master_setFinal3dColor(int dstX, int srcX)
} }
else final = R6G6B6TORGB15(red,green,blue); else final = R6G6B6TORGB15(red,green,blue);
} }
else else
{ {
final = R6G6B6TORGB15(red,green,blue); final = R6G6B6TORGB15(red,green,blue);
//perform the special effect //perform the special effect