Skip to content

Commit

Permalink
[d3d8] Stub DebugSetMute to fix C&C:Generals performance
Browse files Browse the repository at this point in the history
  • Loading branch information
WinterSnowfall authored and doitsujin committed Oct 10, 2024
1 parent c875941 commit 44b6820
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/d3d8/d3d8.def
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ LIBRARY D3D8.DLL
EXPORTS
ValidatePixelShader @ 2
ValidateVertexShader @ 3

DebugSetMute @ 4
Direct3DCreate8 @ 5
1 change: 1 addition & 0 deletions src/d3d8/d3d8.sym
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
global:
ValidatePixelShader;
ValidateVertexShader;
DebugSetMute;
Direct3DCreate8;

local:
Expand Down
4 changes: 4 additions & 0 deletions src/d3d8/d3d8_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 44b6820

Please sign in to comment.