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:
Filippos Karapetis 2017-03-22 23:02:52 +02:00
parent 95c776e1eb
commit 8bc03c87c5

View File

@ -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;
}
}