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:
parent
2849777702
commit
87ec5d5610
@ -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" },
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user