[Glide64] correct Winback hack

This commit is contained in:
purplemarshmallow 2016-11-17 17:31:33 +01:00
parent 6203c0837b
commit 79c13d0021
1 changed files with 8 additions and 7 deletions

View File

@ -929,16 +929,17 @@ static void rdp_texrect()
else
{
//gDPTextureRectangle
if (g_settings->hacks&hack_ASB || g_settings->hacks&hack_Winback)
if (g_settings->hacks&hack_Winback) {
rdp.pc[rdp.pc_i] += 8;
return;
}
if (g_settings->hacks&hack_ASB)
rdp.cmd2 = 0;
else
rdp.cmd2 = ((uint32_t*)gfx.RDRAM)[a + 0];
if (g_settings->hacks&hack_Winback)
rdp.cmd3 = 0;
else
rdp.cmd3 = ((uint32_t*)gfx.RDRAM)[a + 1];
rdp.cmd3 = ((uint32_t*)gfx.RDRAM)[a + 1];
rdp.pc[rdp.pc_i] += 8;
}
}
@ -948,7 +949,7 @@ static void rdp_texrect()
return;
}
if (rdp.skip_drawing || (!fb_emulation_enabled && (rdp.cimg == rdp.zimg)) || rdp.cmd3 == 0)
if (rdp.skip_drawing || (!fb_emulation_enabled && (rdp.cimg == rdp.zimg)))
{
if ((g_settings->hacks&hack_PMario) && rdp.ci_status == ci_useless)
{