Added D3D12 device check

This commit is contained in:
cdozdil
2025-10-29 01:33:02 +03:00
parent b2fdb58e34
commit 8a88984e0a
+2 -1
View File
@@ -911,7 +911,8 @@ void XeFG_Dx12::SetResource(Dx12Resource* inputResource)
FlipResource(fResource);
}
if (type == FG_ResourceType::Depth && !Config::Instance()->FGXeFGDepthInverted.value_or_default())
if (_device != nullptr && type == FG_ResourceType::Depth &&
!Config::Instance()->FGXeFGDepthInverted.value_or_default())
{
if (_depthInvert.get() == nullptr)
{