Merge pull request #1644 from LukeUsher/smashing-drive-again

Fix a bug where the smashing drive fix was actually ignored
This commit is contained in:
Luke Usher 2019-06-25 09:14:58 +01:00 committed by GitHub
commit a76bac4205
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ void UpdateDeferredRenderStates()
if (fogValue < 0.0f) {
LOG_TEST_CASE("FOGSTART/FOGEND below 0");
fogValue = std::abs(fogValue);
Value = *(DWORD*)&Value;
Value = *(DWORD*)&fogValue;
}
} break;
case XTL::X_D3DRS_FOGENABLE: