mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-02-05 13:20:56 +00:00
- completely clear all texture data when setting a frame size.
SMK tries to draw a texture from it before the first frame has been rendered. This ensures that it gets a fully black frame. Fixes #167.
This commit is contained in:
parent
05fbfa3f25
commit
2d545767ef
2 changed files with 2 additions and 0 deletions
|
@ -47,6 +47,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());
|
memset(Image.Data(), 0, Image.Size());
|
||||||
|
CleanHardwareTextures();
|
||||||
pixelformat = format;
|
pixelformat = format;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -315,6 +315,7 @@ public:
|
||||||
{
|
{
|
||||||
Smacker_Close(hSMK);
|
Smacker_Close(hSMK);
|
||||||
soundEngine->StopAllChannels();
|
soundEngine->StopAllChannels();
|
||||||
|
animtex.Clean();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue