mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
- fixed uninitialized bitmap object for texture generation.
This commit is contained in:
parent
cf30f5560b
commit
e94ed3abf2
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue