mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-06 06:58:15 +00:00
Fix uninitialized rgbmap (found w/MSVC debug, GitHub actions failed)
Regression from 2785a9fef7
This commit is contained in:
parent
1912053f33
commit
f7dee88901
@ -219,6 +219,9 @@ void SetPixelFormat::convertImage(doc::Sprite* sprite,
|
|||||||
else
|
else
|
||||||
newMaskIndex = rgbmap->maskIndex();
|
newMaskIndex = rgbmap->maskIndex();
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
rgbmap = nullptr;
|
||||||
|
}
|
||||||
ImageRef newImage(
|
ImageRef newImage(
|
||||||
render::convert_pixel_format
|
render::convert_pixel_format
|
||||||
(oldImage.get(), nullptr, m_newFormat,
|
(oldImage.get(), nullptr, m_newFormat,
|
||||||
|
Loading…
Reference in New Issue
Block a user