1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-07 03:13:49 +00:00

Correct gSPSetOtherMode_L.

Fixed blending issue in Bomberman Hero, #225
This commit is contained in:
Sergey Lipskiy 2015-03-18 12:45:09 +06:00
parent b94d63a746
commit cc4b8a88e6
2 changed files with 2 additions and 1 deletions

View File

@ -207,7 +207,6 @@ void gDPSetDepthSource( u32 source )
void gDPSetRenderMode( u32 mode1, u32 mode2 )
{
gDP.otherMode.l &= 0x00000007;
gDP.otherMode.l |= mode1 | mode2;
gDP.changed |= CHANGED_RENDERMODE;

View File

@ -1824,6 +1824,8 @@ void gSPSetOtherMode_H(u32 _length, u32 _shift, u32 _data)
void gSPSetOtherMode_L(u32 _length, u32 _shift, u32 _data)
{
u32 mask = (((u64)1 << _length) - 1) << _shift;
_data &= mask;
gDP.otherMode.l &= ~mask;
if (mask & 0x00000003) // alpha compare
gDPSetAlphaCompare(_data >> G_MDSFT_ALPHACOMPARE);