Skip to content

Commit

Permalink
One more minor E_INVALIDARGS scenario
Browse files Browse the repository at this point in the history
  • Loading branch information
walbourn committed Nov 6, 2024
1 parent b49592e commit 4201ba7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Src/LoaderHelpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,9 @@ namespace DirectX
size_t bpe = 0;
switch (fmt)
{
case DXGI_FORMAT_UNKNOWN:
return E_INVALIDARG;

case DXGI_FORMAT_BC1_TYPELESS:
case DXGI_FORMAT_BC1_UNORM:
case DXGI_FORMAT_BC1_UNORM_SRGB:
Expand Down

0 comments on commit 4201ba7

Please sign in to comment.