mirror of
https://github.com/optiscaler/OptiScaler.git
synced 2026-08-24 07:06:33 +00:00
Fix FSR-FG ffxQuery hook
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user