Native mipmap support to FTexture
This commit is contained in:
parent
d15af1524c
commit
c235de5c22
9 changed files with 171 additions and 196 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue