Output correct number of mipmaps.

Fix nvtt, remove deprecated attributes.
This commit is contained in:
castano
2007-12-17 05:19:55 +00:00
parent 9cfbb22d73
commit 6fa15f4e5b
4 changed files with 15 additions and 10 deletions

View File

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