test: isolate EndScene hook only

This commit is contained in:
2026-08-29 18:48:37 +02:00
parent 7a959c7112
commit 2ddbbe9fc7
+2 -3
View File
@@ -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;
}