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; }