From 2ddbbe9fc71c0c7f14ef5a6a76cd3b7631ad0cda Mon Sep 17 00:00:00 2001 From: Dusk-92 Date: Sat, 29 Aug 2026 18:48:37 +0200 Subject: [PATCH] test: isolate EndScene hook only --- src/outline/d3d9_hook.zig | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/outline/d3d9_hook.zig b/src/outline/d3d9_hook.zig index 60964f7..50ab9d7 100644 --- a/src/outline/d3d9_hook.zig +++ b/src/outline/d3d9_hook.zig @@ -1627,11 +1627,10 @@ pub fn installHooks() bool { const vtable_ptr = getD3D9VTable() orelse return false; d3d9_vtable = vtable_ptr; + // Isolation test: hook EndScene only. + // DrawIndexedPrimitive and Reset remain untouched. if (!patchVtableEntry(vtable_ptr, types.VT.EndScene, @intFromPtr(&hkEndScene), &orig_endscene)) return false; - if (!patchVtableEntry(vtable_ptr, types.VT.DrawIndexedPrimitive, @intFromPtr(&hkDIP), &orig_dip)) return false; - // Isolation test: do not hook IDirect3DDevice9::Reset. - // EndScene + DIP remain active so the visible outline pipeline still runs. hooks_installed = true; return true; }