From af907d67cf6bb3afa564e1228e651d15dee02bbc 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 73ea8232..ffd9a118 100644 --- a/OptiScaler/proxies/FfxApi_Proxy.h +++ b/OptiScaler/proxies/FfxApi_Proxy.h @@ -564,11 +564,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;