mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 06:08:35 +00:00
GRAPHICS: Add sanity check
This commit is contained in:
parent
0f11df130b
commit
81c443c973
@ -406,6 +406,8 @@ void transBlit(const Surface &src, const Common::Rect &srcRect, Surface &dest, c
|
||||
} else {
|
||||
// Otherwise we have to manually decode and re-encode each pixel
|
||||
if (srcFormat.bytesPerPixel == 1) {
|
||||
assert(palette != nullptr); // Catch the cases when palette is missing
|
||||
|
||||
// Get the palette color
|
||||
const uint32 col = palette[srcVal];
|
||||
rSrc = col & 0xff;
|
||||
|
Loading…
Reference in New Issue
Block a user