Skip to content

Commit 87ec5d5

Browse files
authored
Some DDS DX10 writers set arryaSize to 0 instead of 1 (#490)
1 parent 2849777 commit 87ec5d5

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CMakePresets.json

+2
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,8 @@
353353
{ "name": "x86-Release" , "configurePreset": "x86-Release" },
354354
{ "name": "arm64-Debug" , "configurePreset": "arm64-Debug" },
355355
{ "name": "arm64-Release", "configurePreset": "arm64-Release" },
356+
{ "name": "arm64ec-Debug" , "configurePreset": "arm64ec-Debug" },
357+
{ "name": "arm64ec-Release", "configurePreset": "arm64ec-Release" },
356358

357359
{ "name": "x64-Debug-Clang" , "configurePreset": "x64-Debug-Clang" },
358360
{ "name": "x64-Release-Clang" , "configurePreset": "x64-Release-Clang" },

DirectXTex/DirectXTexDDS.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ namespace
397397
metadata.arraySize = d3d10ext->arraySize;
398398
if (metadata.arraySize == 0)
399399
{
400-
return HRESULT_E_INVALID_DATA;
400+
metadata.arraySize = 1;
401401
}
402402

403403
metadata.format = d3d10ext->dxgiFormat;

0 commit comments

Comments
 (0)