From 41ab9c8493f1db49e5a3b4411b2155c8cd5819af Mon Sep 17 00:00:00 2001 From: ricardoofnl Date: Sun, 2 Aug 2026 14:27:55 +0700 Subject: [PATCH] [saco] Implement/match `IDirect3DDevice9Hook::EndScene` --- saco/d3dhook/IDirect3DDevice9Hook.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/saco/d3dhook/IDirect3DDevice9Hook.cpp b/saco/d3dhook/IDirect3DDevice9Hook.cpp index aab82e8..7fd95ab 100644 --- a/saco/d3dhook/IDirect3DDevice9Hook.cpp +++ b/saco/d3dhook/IDirect3DDevice9Hook.cpp @@ -239,9 +239,10 @@ HRESULT __stdcall IDirect3DDevice9Hook::BeginScene() HRESULT __stdcall IDirect3DDevice9Hook::EndScene() { - // TODO: IDirect3DDevice9Hook::EndScene - - return pD3DDevice->EndScene(); + sub_1009D8B0(); + HRESULT hr = pD3DDevice->EndScene(); + sub_1009D8B0(); + return hr; } HRESULT __stdcall IDirect3DDevice9Hook::Clear(DWORD Count, CONST D3DRECT* pRects, DWORD Flags, D3DCOLOR Color, float Z, DWORD Stencil)