mirror of
https://github.com/optiscaler/OptiScaler.git
synced 2026-08-25 07:36:45 +00:00
Added D3D12 device check
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user