mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-20 00:41:12 +00:00
FULLPIPE: Fix corruption in flipped bitmaps
The TODO in the code in question should be reviewed, but the call to freePixelData() unconditionally deleted the original bitmap, which is not correct
This commit is contained in:
parent
95c776e1eb
commit
8bc03c87c5
@ -1472,8 +1472,9 @@ void Statics::init() {
|
||||
|
||||
if (_staticsId & 0x4000) {
|
||||
Bitmap *reversed = _bitmap->reverseImage();
|
||||
freePixelData();
|
||||
// TODO: properly dispose old _bitmap
|
||||
// Enabling the call below causes corruption in flipped bitmaps
|
||||
//freePixelData();
|
||||
_bitmap = reversed;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user