Skip to content

Commit 50b9a94

Browse files
committed
Provide a custom amdxc64 interface only when FSR 4 Update is selected
1 parent cbecd03 commit 50b9a94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

OptiScaler/hooks/Kernel_Hooks.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1752,7 +1752,7 @@ class KernelHooks
17521752
// FSR 4 Init in case of missing amdxc64.dll
17531753
// 2nd check is amdxcffx64.dll trying to queue amdxc64 but amdxc64 not being loaded
17541754
if (lpProcName != nullptr && (hModule == amdxc64Mark || hModule == nullptr) &&
1755-
lstrcmpA(lpProcName, "AmdExtD3DCreateInterface") == 0)
1755+
lstrcmpA(lpProcName, "AmdExtD3DCreateInterface") == 0 && Config::Instance()->Fsr4Update.value_for_config())
17561756
{
17571757
return (FARPROC) &customAmdExtD3DCreateInterface;
17581758
}

0 commit comments

Comments
 (0)