check if capture started

This commit is contained in:
cdozdil
2024-11-05 22:22:19 +03:00
parent 88af478268
commit 035014093e
+1 -1
View File
@@ -1519,7 +1519,7 @@ static HRESULT hkFGPresent(void* This, UINT SyncInterval, UINT Flags)
// If dispatch still not called
if (!fgDispatchCalled && Config::Instance()->FGHUDFix.value_or(false) && Config::Instance()->CurrentFeature != nullptr &&
!Config::Instance()->FGChanged && FrameGen_Dx12::fgContext != nullptr && FrameGen_Dx12::fgIsActive)
!Config::Instance()->FGChanged && FrameGen_Dx12::fgContext != nullptr && FrameGen_Dx12::fgIsActive && CheckCapture(__FUNCTION__))
{
LOG_WARN("Can't capture hudless, calling HudFix dispatch!");
fgHudless[fIndex] = nullptr;