mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
Since apparently no one feels like fixing SMG FIFO overflows, commit iceman4love77's fix. No idea if it works or what it does, he seemed pretty confident that it works though.
Only fail once if EFB pokes are requested in DX9/DX11. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5888 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -604,6 +604,15 @@ u32 Renderer::AccessEFB(EFBAccessType type, int x, int y)
|
||||
if (!g_ActiveConfig.bEFBAccessEnable)
|
||||
return 0;
|
||||
|
||||
if (type == POKE_Z || type == POKE_COLOR)
|
||||
{
|
||||
static bool alert_only_once = true;
|
||||
if (!alert_only_once) return 0;
|
||||
PanicAlert("Poke EFB not implemented");
|
||||
alert_only_once = false;
|
||||
return 0;
|
||||
}
|
||||
|
||||
// get the rectangular target region covered by the EFB pixel
|
||||
EFBRectangle efbPixelRc;
|
||||
efbPixelRc.left = x;
|
||||
@ -674,16 +683,12 @@ u32 Renderer::AccessEFB(EFBAccessType type, int x, int y)
|
||||
z = ((u32)(val * 0xffffff));
|
||||
break;
|
||||
|
||||
case POKE_Z:
|
||||
PanicAlert("Poke Z-buffer not implemented");
|
||||
break;
|
||||
|
||||
case PEEK_COLOR:
|
||||
z = ((u32*)map.pData)[0];
|
||||
break;
|
||||
|
||||
case POKE_COLOR:
|
||||
PanicAlert("Poke color EFB not implemented");
|
||||
// TODO: Implement POKE_Z and POKE_COLOR
|
||||
default:
|
||||
break;
|
||||
}
|
||||
D3D::context->Unmap(read_tex, 0);
|
||||
|
Reference in New Issue
Block a user