From 372de28d7b0f437c7a4667703675fa084c1e38f8 Mon Sep 17 00:00:00 2001 From: Luke Usher Date: Sat, 6 Apr 2019 14:07:43 +0100 Subject: [PATCH] Reduce D3DTOP >= 4361 exception to >= 4134: Fixes DOA3 PAL --- src/core/hle/D3D8/XbState.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/core/hle/D3D8/XbState.cpp b/src/core/hle/D3D8/XbState.cpp index 8a4e124cd..4cb1011b9 100644 --- a/src/core/hle/D3D8/XbState.cpp +++ b/src/core/hle/D3D8/XbState.cpp @@ -201,14 +201,15 @@ DWORD Map3911ToCxbxD3DTOP(DWORD Value) } DWORD TranslateXDKSpecificD3DTOP(DWORD Value) -{ - if (g_BuildVersion >= 4361) { +{ + // TODO: Determine when exactly these values changed + // So far, 4134 is the earliest version we've seen using these mappings + // But this may change + if (g_BuildVersion >= 4134) { // For these XDKs, the mapping has been confirmed to match our internal mapping return Value; } - // TODO: Did these values change after 3911 but before 4361? - // For now, assume they didn't and use the 3911 mappings return Map3911ToCxbxD3DTOP(Value); }