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; }