From 44b682051b7a03a573f391e44f9d8e64c149eeaa Mon Sep 17 00:00:00 2001 From: WinterSnowfall Date: Thu, 10 Oct 2024 13:49:49 +0300 Subject: [PATCH] [d3d8] Stub DebugSetMute to fix C&C:Generals performance --- src/d3d8/d3d8.def | 2 +- src/d3d8/d3d8.sym | 1 + src/d3d8/d3d8_main.cpp | 4 ++++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/d3d8/d3d8.def b/src/d3d8/d3d8.def index 8627b3b2bec..38c51df338b 100644 --- a/src/d3d8/d3d8.def +++ b/src/d3d8/d3d8.def @@ -2,5 +2,5 @@ LIBRARY D3D8.DLL EXPORTS ValidatePixelShader @ 2 ValidateVertexShader @ 3 - + DebugSetMute @ 4 Direct3DCreate8 @ 5 diff --git a/src/d3d8/d3d8.sym b/src/d3d8/d3d8.sym index 33951d0e6fe..3d13a875afb 100644 --- a/src/d3d8/d3d8.sym +++ b/src/d3d8/d3d8.sym @@ -2,6 +2,7 @@ global: ValidatePixelShader; ValidateVertexShader; + DebugSetMute; Direct3DCreate8; local: diff --git a/src/d3d8/d3d8_main.cpp b/src/d3d8/d3d8_main.cpp index 301d5cfb287..2899a7595a9 100644 --- a/src/d3d8/d3d8_main.cpp +++ b/src/d3d8/d3d8_main.cpp @@ -51,6 +51,10 @@ extern "C" { return S_OK; } + DLLEXPORT void __stdcall DebugSetMute() { + dxvk::Logger::debug("D3D8: DebugSetMute: Stub"); + } + DLLEXPORT IDirect3D8* __stdcall Direct3DCreate8(UINT nSDKVersion) { IDirect3D8* pDirect3D = nullptr; dxvk::CreateD3D8(&pDirect3D);