Output correct number of mipmaps.
Fix nvtt, remove deprecated attributes.
This commit is contained in:
@ -433,7 +433,7 @@ void DDSHeader::setDepth(uint d)
|
||||
|
||||
void DDSHeader::setMipmapCount(uint count)
|
||||
{
|
||||
if (count == 0)
|
||||
if (count == 0 || count == 1)
|
||||
{
|
||||
this->flags &= ~DDSD_MIPMAPCOUNT;
|
||||
this->mipmapcount = 0;
|
||||
|
Reference in New Issue
Block a user