Skip to content

Commit

Permalink
Some DDS DX10 writers set arryaSize to 0 instead of 1 (#490)
Browse files Browse the repository at this point in the history
  • Loading branch information
walbourn authored Jul 19, 2024
1 parent 2849777 commit 87ec5d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,8 @@
{ "name": "x86-Release" , "configurePreset": "x86-Release" },
{ "name": "arm64-Debug" , "configurePreset": "arm64-Debug" },
{ "name": "arm64-Release", "configurePreset": "arm64-Release" },
{ "name": "arm64ec-Debug" , "configurePreset": "arm64ec-Debug" },
{ "name": "arm64ec-Release", "configurePreset": "arm64ec-Release" },

{ "name": "x64-Debug-Clang" , "configurePreset": "x64-Debug-Clang" },
{ "name": "x64-Release-Clang" , "configurePreset": "x64-Release-Clang" },
Expand Down
2 changes: 1 addition & 1 deletion DirectXTex/DirectXTexDDS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ namespace
metadata.arraySize = d3d10ext->arraySize;
if (metadata.arraySize == 0)
{
return HRESULT_E_INVALID_DATA;
metadata.arraySize = 1;
}

metadata.format = d3d10ext->dxgiFormat;
Expand Down

0 comments on commit 87ec5d5

Please sign in to comment.