mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 03:00:46 +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 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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue