- 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:
parent
b07445d149
commit
8e4ba47c98
2 changed files with 5 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue