mirror of
https://github.com/microsoft/DirectXTex.git
synced 2026-02-07 05:26:12 +01:00
texconv: -ignoremips options for reading some invalid DDS files (#484)
This commit is contained in:
@@ -369,8 +369,10 @@ namespace
|
||||
}
|
||||
|
||||
metadata.mipLevels = pHeader->mipMapCount;
|
||||
if (metadata.mipLevels == 0)
|
||||
if ((metadata.mipLevels == 0) || (flags & DDS_FLAGS_IGNORE_MIPS))
|
||||
{
|
||||
metadata.mipLevels = 1;
|
||||
}
|
||||
|
||||
// Check for DX10 extension
|
||||
if ((pHeader->ddspf.flags & DDS_FOURCC)
|
||||
|
||||
Reference in New Issue
Block a user