mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-04 10:03:36 +00:00
Enable texrect drawer in BG commands when enableNativeResTexrects enabled.
This commit is contained in:
parent
f31cb4b00d
commit
dcd159dc71
|
@ -997,8 +997,6 @@ void runCommand(u32 w0, u32 w1)
|
||||||
GBI.cmd[_SHIFTR(w0, 24, 8)](w0, w1);
|
GBI.cmd[_SHIFTR(w0, 24, 8)](w0, w1);
|
||||||
};
|
};
|
||||||
|
|
||||||
#define USE_TEXRECTDRAWER_BG1CYC
|
|
||||||
|
|
||||||
static
|
static
|
||||||
void BG1CycNew(u32 _bgAddr)
|
void BG1CycNew(u32 _bgAddr)
|
||||||
{
|
{
|
||||||
|
@ -1157,10 +1155,9 @@ void BG1CycNew(u32 _bgAddr)
|
||||||
runCommand((G_SETTILESIZE<<24), 0);
|
runCommand((G_SETTILESIZE<<24), 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef USE_TEXRECTDRAWER_BG1CYC
|
if (config.generalEmulation.enableNativeResTexrects != 0)
|
||||||
GraphicsDrawer & drawer = dwnd().getDrawer();
|
dwnd().getDrawer().setBackgroundDrawingMode(true);
|
||||||
drawer.setBackgroundDrawingMode(true);
|
|
||||||
#endif
|
|
||||||
//Part two
|
//Part two
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -1344,13 +1341,13 @@ void BG1CycNew(u32 _bgAddr)
|
||||||
}
|
}
|
||||||
|
|
||||||
RSP.LLE = false;
|
RSP.LLE = false;
|
||||||
#ifdef USE_TEXRECTDRAWER_BG1CYC
|
|
||||||
drawer.flush();
|
|
||||||
drawer.setBackgroundDrawingMode(false);
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
#define USE_TEXRECTDRAWER_BGCOPY
|
if (config.generalEmulation.enableNativeResTexrects != 0) {
|
||||||
|
GraphicsDrawer & drawer = dwnd().getDrawer();
|
||||||
|
drawer.flush();
|
||||||
|
drawer.setBackgroundDrawingMode(false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static
|
static
|
||||||
void BGCopyNew(u32 _bgAddr)
|
void BGCopyNew(u32 _bgAddr)
|
||||||
|
@ -1428,10 +1425,8 @@ void BGCopyNew(u32 _bgAddr)
|
||||||
s16 AT = Ch;
|
s16 AT = Ch;
|
||||||
s16 U = A1 - A2;
|
s16 U = A1 - A2;
|
||||||
|
|
||||||
#ifdef USE_TEXRECTDRAWER_BGCOPY
|
if (config.generalEmulation.enableNativeResTexrects != 0)
|
||||||
GraphicsDrawer & drawer = dwnd().getDrawer();
|
dwnd().getDrawer().setBackgroundDrawingMode(true);
|
||||||
drawer.setBackgroundDrawingMode(true);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
u32 V, X, Y, Z, AA, w0, w1;
|
u32 V, X, Y, Z, AA, w0, w1;
|
||||||
u16 S5, BB;
|
u16 S5, BB;
|
||||||
|
@ -1530,10 +1525,11 @@ void BGCopyNew(u32 _bgAddr)
|
||||||
}
|
}
|
||||||
|
|
||||||
RSP.LLE = false;
|
RSP.LLE = false;
|
||||||
#ifdef USE_TEXRECTDRAWER_BGCOPY
|
if (config.generalEmulation.enableNativeResTexrects != 0) {
|
||||||
drawer.flush();
|
GraphicsDrawer & drawer = dwnd().getDrawer();
|
||||||
drawer.setBackgroundDrawingMode(false);
|
drawer.flush();
|
||||||
#endif
|
drawer.setBackgroundDrawingMode(false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void S2DEX_BG_1Cyc(u32 w0, u32 w1)
|
void S2DEX_BG_1Cyc(u32 w0, u32 w1)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user