From e94ed3abf22625ddc8139e2a448d5301d4035000 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 6 Oct 2019 19:19:26 +0200 Subject: [PATCH] - fixed uninitialized bitmap object for texture generation. --- source/common/textures/imagetexture.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/common/textures/imagetexture.cpp b/source/common/textures/imagetexture.cpp index 6ee8596ad..77d208ba1 100644 --- a/source/common/textures/imagetexture.cpp +++ b/source/common/textures/imagetexture.cpp @@ -72,6 +72,7 @@ FImageTexture::FImageTexture(FImageSource *img, const char *name) FBitmap FImageTexture::GetBgraBitmap(PalEntry *p, int *trans) { FBitmap bmp; + bmp.Create(Width, Height); mImage->CopyPixels(&bmp, 0); // Todo: Handle translations. return bmp; }