diff --git a/Source/Engine/GraphicsDevice/DirectX/DX12/GPUDeviceDX12.cpp b/Source/Engine/GraphicsDevice/DirectX/DX12/GPUDeviceDX12.cpp index 20a26f2f5..e176d199c 100644 --- a/Source/Engine/GraphicsDevice/DirectX/DX12/GPUDeviceDX12.cpp +++ b/Source/Engine/GraphicsDevice/DirectX/DX12/GPUDeviceDX12.cpp @@ -335,10 +335,10 @@ bool GPUDeviceDX12::Init() IsDebugToolAttached = true; unknown->Release(); } - if (!IsDebugToolAttached && GetModuleHandleA("renderdoc.dll") != nullptr) - { + if (!IsDebugToolAttached && GetModuleHandleA("renderdoc.dll")) + IsDebugToolAttached = true; + if (!IsDebugToolAttached && (GetModuleHandleA("Nvda.Graphics.Interception.dll") || GetModuleHandleA("WarpViz.Injection.dll") || GetModuleHandleA("nvperf_grfx_target.dll"))) IsDebugToolAttached = true; - } #endif // Check if can use screen tearing on a swapchain