- fixed uninitialized bitmap object for texture generation.

This commit is contained in:
Christoph Oelckers 2019-10-06 19:19:26 +02:00
parent cf30f5560b
commit e94ed3abf2

View file

@ -72,6 +72,7 @@ FImageTexture::FImageTexture(FImageSource *img, const char *name)
FBitmap FImageTexture::GetBgraBitmap(PalEntry *p, int *trans) FBitmap FImageTexture::GetBgraBitmap(PalEntry *p, int *trans)
{ {
FBitmap bmp; FBitmap bmp;
bmp.Create(Width, Height);
mImage->CopyPixels(&bmp, 0); // Todo: Handle translations. mImage->CopyPixels(&bmp, 0); // Todo: Handle translations.
return bmp; return bmp;
} }