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:
parent
b94d63a746
commit
cc4b8a88e6
1
gDP.cpp
1
gDP.cpp
|
@ -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;
|
||||
|
|
2
gSP.cpp
2
gSP.cpp
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user