Skip to content

Commit

Permalink
Fixed hang when first device is not supported
Browse files Browse the repository at this point in the history
  • Loading branch information
Devaniti committed Dec 5, 2023
1 parent 279c14e commit 623de9d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions D3D12Backend/APIWrappers/Device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,13 +162,15 @@ namespace Boolka
if (FAILED(hr))
{
adapter->Release();
++i;
continue;
}

if (!FeatureSupportHelper::IsSupported(device))
{
adapter->Release();
device->Release();
++i;
continue;
}

Expand Down

0 comments on commit 623de9d

Please sign in to comment.