mirror of
https://github.com/gwdevhub/gMod.git
synced 2026-07-15 15:09:30 +00:00
92c6b115f3
Keep the o_* trampoline pointers valid on RemoveAllD3D9Hooks and add a g_unhooked flag each detour checks after calling the original, so a surviving vtable patch invoked during/after teardown just returns the real result instead of touching freed TextureClient state. Tear down off the loader lock via a new Shutdown export and skip teardown on process exit. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>