From 070f04093a25b0e054195641c74438cbf4612a57 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 10 Aug 2020 22:16:02 +0200 Subject: [PATCH] - clear the buffer for the cutscene textures when starting a new cutscene. Otherwise the first frame may display garbage. --- source/common/textures/animtexture.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/common/textures/animtexture.cpp b/source/common/textures/animtexture.cpp index 85bd3ed1b..75dbb0111 100644 --- a/source/common/textures/animtexture.cpp +++ b/source/common/textures/animtexture.cpp @@ -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; }