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
2 changed files with 3 additions and 1 deletions

View File

@@ -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;