Merge pull request #2052 from LukeUsher/remove-3925-hacks

remove 3925 fog/alpha hacks
This commit is contained in:
PatrickvL 2020-11-29 17:59:35 +01:00 committed by GitHub
commit 3a7b233199
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 17 deletions

View File

@ -278,14 +278,6 @@ void XboxRenderStateConverter::ApplySimpleRenderState(uint32_t State, uint32_t V
Value = EmuXB2PC_D3DSTENCILOP(Value);
break;
case xbox::X_D3DRS_ALPHATESTENABLE:
if (g_LibVersion_D3D8 == 3925) {
// HACK: Many 3925 have missing polygons when this is true
// Until we find out the true underlying cause, and carry on
// Test Cases: Halo, Silent Hill 2.
LOG_TEST_CASE("Applying 3925 alpha test disable hack");
Value = false;
}
break;
case xbox::X_D3DRS_ALPHABLENDENABLE:
case xbox::X_D3DRS_BLENDCOLOR:
case xbox::X_D3DRS_ALPHAREF: case xbox::X_D3DRS_ZWRITEENABLE:
@ -331,15 +323,6 @@ void XboxRenderStateConverter::ApplyDeferredRenderState(uint32_t State, uint32_t
}
} break;
case xbox::X_D3DRS_FOGENABLE:
if (g_LibVersion_D3D8 == 3925) {
// HACK: Many 3925 games only show a black screen if fog is enabled
// Initially, this was thought to be bad offsets, but it has been verified to be correct
// Until we find out the true underlying cause, disable fog and carry on
// Test Cases: Halo, Silent Hill 2.
LOG_TEST_CASE("Applying 3925 fog disable hack");
Value = false;
}
break;
case xbox::X_D3DRS_FOGTABLEMODE:
case xbox::X_D3DRS_FOGDENSITY:
case xbox::X_D3DRS_RANGEFOGENABLE: