From 69be9adf52b643188c2a2e37aa7e4d79ecf2eae1 Mon Sep 17 00:00:00 2001 From: peres Date: Sat, 26 Oct 2013 23:05:20 +0900 Subject: Revert "GRAPHICS: do not clear the internal state of IFFDecoder on loadStream()." This reverts commit 92c1ff31d6d8d78e58caa4d123ceb0fea43a48ed. --- graphics/decoders/iff.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'graphics/decoders') diff --git a/graphics/decoders/iff.cpp b/graphics/decoders/iff.cpp index 485b2846a8..7b37969fc1 100644 --- a/graphics/decoders/iff.cpp +++ b/graphics/decoders/iff.cpp @@ -59,8 +59,7 @@ void IFFDecoder::destroy() { } bool IFFDecoder::loadStream(Common::SeekableReadStream &stream) { - // NOTE: we cannot call destroy() here, like most other decoders do, otherwise the - // settings (stored in _numRelevantPlanes and _pixelPacking) will be cleared. + destroy(); const uint32 form = stream.readUint32BE(); -- cgit v1.2.3