Native mipmap support to FTexture

This commit is contained in:
Magnus Norddahl 2016-06-21 21:55:08 +02:00
commit c235de5c22
9 changed files with 171 additions and 196 deletions

View file

@ -633,7 +633,7 @@ void FPNGTexture::MakeTextureBgra ()
lump = new FileReader(SourceFile.GetChars());
}
PixelsBgra.resize(Width * Height, 0xffff0000);
CreatePixelsBgraWithMipmaps();
if (StartOfIDAT != 0)
{
DWORD len, id;
@ -757,6 +757,7 @@ void FPNGTexture::MakeTextureBgra ()
}
}
delete lump;
GenerateBgraMipmaps();
}
//===========================================================================