From 9e321bb5e7e20b9473d96223919d54ef27c14ecc Mon Sep 17 00:00:00 2001 From: cdozdil Date: Fri, 8 May 2026 17:53:04 +0300 Subject: [PATCH] Fix FSR-FG ffxQuery hook --- OptiScaler/proxies/FfxApi_Proxy.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OptiScaler/proxies/FfxApi_Proxy.h b/OptiScaler/proxies/FfxApi_Proxy.h index 634cda3d..2141f293 100644 --- a/OptiScaler/proxies/FfxApi_Proxy.h +++ b/OptiScaler/proxies/FfxApi_Proxy.h @@ -586,11 +586,11 @@ class FfxApiProxy if (fg_dx12_hooked.Dispatch != nullptr) DetourAttach(&(PVOID&) fg_dx12_hooked.Dispatch, ffxDispatch_Dx12); - DetourTransactionCommit(); - if (fg_dx12_hooked.Query != nullptr) DetourAttach(&(PVOID&) fg_dx12_hooked.Query, ffxQuery_Dx12); + DetourTransactionCommit(); + if (fg_dx12.dll == fg_dx12_hooked.dll) fg_dx12 = fg_dx12_hooked;