- clear the buffer for the cutscene textures when starting a new cutscene.

Otherwise the first frame may display garbage.
This commit is contained in:
Christoph Oelckers 2020-08-10 22:16:02 +02:00
parent 97b202955c
commit 070f04093a
1 changed files with 1 additions and 0 deletions

View File

@ -46,6 +46,7 @@ void AnimTexture::SetFrameSize(int format, int width, int height)
{
FTexture::SetSize(width, height);
Image.Resize(width * height * (format == Paletted ? 1 : 3));
memset(Image.Data(), 0, Image.Size());
pixelformat = format;
}