mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-20 17:03:05 +00:00
GRAPHICS: Have TGA's loadStream() call destroy()
This commit is contained in:
parent
1b3eee6d78
commit
091bcbf313
@ -50,6 +50,8 @@ void TGADecoder::destroy() {
|
||||
}
|
||||
|
||||
bool TGADecoder::loadStream(Common::SeekableReadStream &tga) {
|
||||
destroy();
|
||||
|
||||
byte imageType, pixelDepth;
|
||||
bool success;
|
||||
success = readHeader(tga, imageType, pixelDepth);
|
||||
|
Loading…
x
Reference in New Issue
Block a user