- fixed: The PNG loader for true color textures overwrote the IDAT size with

the IDAT id when reading the image.


SVN r1805 (trunk)
This commit is contained in:
Christoph Oelckers 2009-09-07 05:48:34 +00:00
commit 8e4ba47c98
2 changed files with 5 additions and 1 deletions

View file

@ -646,7 +646,7 @@ int FPNGTexture::CopyTrueColorPixels(FBitmap *bmp, int x, int y, int w, int h, i
lump->Seek (StartOfIDAT, SEEK_SET);
lump->Read(&len, 4);
lump->Read(&len, 4);
lump->Read(&id, 4);
M_ReadIDAT (lump, Pixels, Width, Height, pixwidth, BitDepth, ColorType, Interlace, BigLong((unsigned int)len));
delete lump;