mirror of
https://github.com/microsoft/DirectXTex.git
synced 2025-07-09 03:30:13 +02:00
--ignore-mips does not apply to array textures (#567)
This commit is contained in:
parent
5864794ee6
commit
aec0784730
@ -378,7 +378,7 @@ namespace
|
||||
}
|
||||
|
||||
metadata.mipLevels = pHeader->mipMapCount;
|
||||
if ((metadata.mipLevels == 0) || (flags & DDS_FLAGS_IGNORE_MIPS))
|
||||
if (metadata.mipLevels == 0)
|
||||
{
|
||||
metadata.mipLevels = 1;
|
||||
}
|
||||
@ -650,6 +650,12 @@ namespace
|
||||
}
|
||||
}
|
||||
|
||||
// Special-handling flag for ignoring mipchains on simple DDS files
|
||||
if ((flags & DDS_FLAGS_IGNORE_MIPS) && (metadata.arraySize == 1))
|
||||
{
|
||||
metadata.mipLevels = 1;
|
||||
}
|
||||
|
||||
// Handle DDS-specific metadata
|
||||
if (ddPixelFormat)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user