From 94cec02acc0057645dd203d3d7862c8be6ae861d Mon Sep 17 00:00:00 2001 From: Christoph Oelckers <c.oelckers@zdoom.fake> Date: Fri, 15 Apr 2016 15:15:34 +0200 Subject: [PATCH] - fixed: FPNGTexture must readjust the file pointer after deciding to skip the tRNS chunk. --- src/textures/pngtexture.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/textures/pngtexture.cpp b/src/textures/pngtexture.cpp index 4e664aef35..e47fa62c07 100644 --- a/src/textures/pngtexture.cpp +++ b/src/textures/pngtexture.cpp @@ -659,6 +659,10 @@ int FPNGTexture::CopyTrueColorPixels(FBitmap *bmp, int x, int y, int rotate, FCo transpal = true; } } + else + { + lump->Seek(len, SEEK_CUR); + } break; } lump->Seek(4, SEEK_CUR); // Skip CRC