Change check at InitFFX

This commit is contained in:
cdozdil
2025-04-18 18:33:59 +03:00
parent 54d4439764
commit 984d5b0684
+2 -2
View File
@@ -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("");