From 984d5b0684276be6154518ecbcb11bc4368dc70a Mon Sep 17 00:00:00 2001 From: cdozdil Date: Fri, 18 Apr 2025 18:33:59 +0300 Subject: [PATCH] Change check at InitFFX --- 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 7751d3c0..ba14406c 100644 --- a/OptiScaler/proxies/FfxApi_Proxy.h +++ b/OptiScaler/proxies/FfxApi_Proxy.h @@ -47,7 +47,7 @@ public: static bool InitFfxDx12(HMODULE module = nullptr) { // if dll already loaded - if (_dllDx12 != nullptr || _D3D12_CreateContext != nullptr) + if (_dllDx12 != nullptr && _D3D12_CreateContext != nullptr) return true; spdlog::info(""); @@ -183,7 +183,7 @@ public: static bool InitFfxVk(HMODULE module = nullptr) { // if dll already loaded - if (_dllVk != nullptr || _VULKAN_CreateContext != nullptr) + if (_dllVk != nullptr && _VULKAN_CreateContext != nullptr) return true; spdlog::info("");