1
0
mirror of https://github.com/microsoft/DirectXTex synced 2024-11-09 14:30:05 +00:00

Some DDS DX10 writers set arryaSize to 0 instead of 1 (#490)

This commit is contained in:
Chuck Walbourn 2024-07-19 16:37:04 -07:00 committed by GitHub
parent 2849777702
commit 87ec5d5610
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -353,6 +353,8 @@
{ "name": "x86-Release" , "configurePreset": "x86-Release" }, { "name": "x86-Release" , "configurePreset": "x86-Release" },
{ "name": "arm64-Debug" , "configurePreset": "arm64-Debug" }, { "name": "arm64-Debug" , "configurePreset": "arm64-Debug" },
{ "name": "arm64-Release", "configurePreset": "arm64-Release" }, { "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-Debug-Clang" , "configurePreset": "x64-Debug-Clang" },
{ "name": "x64-Release-Clang" , "configurePreset": "x64-Release-Clang" }, { "name": "x64-Release-Clang" , "configurePreset": "x64-Release-Clang" },

View File

@ -397,7 +397,7 @@ namespace
metadata.arraySize = d3d10ext->arraySize; metadata.arraySize = d3d10ext->arraySize;
if (metadata.arraySize == 0) if (metadata.arraySize == 0)
{ {
return HRESULT_E_INVALID_DATA; metadata.arraySize = 1;
} }
metadata.format = d3d10ext->dxgiFormat; metadata.format = d3d10ext->dxgiFormat;