Skip to content

Commit

Permalink
Update DirectXTex with the latest fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
0xC0000054 committed Jul 29, 2023
1 parent f76412f commit e68163d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 3rdParty/DirectXTex/DirectXTex/DirectXTexDDS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ namespace
return HRESULT_E_INVALID_DATA;
}

if (pHeader->ddspf.size != 0 && pHeader->ddspf.size != sizeof(DDS_PIXELFORMAT))
if (pHeader->ddspf.size != 0 && pHeader->ddspf.size != sizeof(DDS_PIXELFORMAT) && pHeader->ddspf.size != 24)
{
return HRESULT_E_INVALID_DATA;
}
Expand Down

0 comments on commit e68163d

Please sign in to comment.