mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-15 01:24:45 +02:00
Error handling in GL2D::makeShaderProgram,
Gfx::PlettedBitmap class correction
This commit is contained in:
@ -67,7 +67,7 @@ CImage * CImage::makeFromPCX(const SH3PcxFile& pcx, size_t fileSize)
|
||||
{
|
||||
if (H3PCX_HEADER_SIZE + imgSize > fileSize) return nullptr;
|
||||
|
||||
return new CBitmap32(width, height, (ColorRGB*)pcx.data);
|
||||
return new CBitmap32(width, height, (ColorRGB*)pcx.data, true);
|
||||
}
|
||||
|
||||
return nullptr;
|
||||
|
Reference in New Issue
Block a user