mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
- clear the buffer for the cutscene textures when starting a new cutscene.
Otherwise the first frame may display garbage.
This commit is contained in:
parent
97b202955c
commit
070f04093a
1 changed files with 1 additions and 0 deletions
|
@ -46,6 +46,7 @@ void AnimTexture::SetFrameSize(int format, int width, int height)
|
||||||
{
|
{
|
||||||
FTexture::SetSize(width, height);
|
FTexture::SetSize(width, height);
|
||||||
Image.Resize(width * height * (format == Paletted ? 1 : 3));
|
Image.Resize(width * height * (format == Paletted ? 1 : 3));
|
||||||
|
memset(Image.Data(), 0, Image.Size());
|
||||||
pixelformat = format;
|
pixelformat = format;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue