Fixed Unity Flip issue

This commit is contained in:
cdozdil
2025-08-19 14:11:52 +03:00
parent 76ae457dda
commit dd570e040b
+2 -2
View File
@@ -66,7 +66,7 @@ void IFGFeature_Dx12::FlipResource(Dx12Resource* resource)
flipOutput = _resourceCopy[fIndex][type];
if (!CreateBufferResource(_device, resource->resource, D3D12_RESOURCE_STATE_UNORDERED_ACCESS, &flipOutput, true,
false))
resource->type == FG_ResourceType::Depth))
{
LOG_ERROR("{}, CreateBufferResource for flip is failed!", magic_enum::enum_name(type));
return;
@@ -74,7 +74,7 @@ void IFGFeature_Dx12::FlipResource(Dx12Resource* resource)
_resourceCopy[fIndex][type] = flipOutput;
if (type != FG_ResourceType::Depth)
if (type == FG_ResourceType::Depth)
{
if (_depthFlip.get() == nullptr)
{