mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-10 23:01:59 +00:00
- fixed the burn shader.
This commit is contained in:
parent
b41ae2dfdd
commit
af7c2fb4e9
3 changed files with 7 additions and 1 deletions
|
@ -389,7 +389,7 @@ void FGameTexture::SetSpriteRect()
|
|||
|
||||
void FGameTexture::CleanHardwareData(bool full)
|
||||
{
|
||||
Base->CleanHardwareTextures();
|
||||
if (full) Base->CleanHardwareTextures();
|
||||
for (auto mat : Material) if (mat) mat->DeleteDescriptors();
|
||||
}
|
||||
|
||||
|
|
|
@ -48,6 +48,11 @@ public:
|
|||
return sourcetex;
|
||||
}
|
||||
|
||||
void ClearLayers()
|
||||
{
|
||||
mTextureLayers.Resize(1);
|
||||
}
|
||||
|
||||
void AddTextureLayer(FTexture *tex, bool allowscale)
|
||||
{
|
||||
mTextureLayers.Push({ tex, allowscale });
|
||||
|
|
|
@ -338,6 +338,7 @@ void Wiper_Burn::SetTextures(FGameTexture *startscreen, FGameTexture *endscreen)
|
|||
endScreen = endscreen;
|
||||
BurnTexture = new FBurnTexture(WIDTH, HEIGHT);
|
||||
auto mat = FMaterial::ValidateTexture(endScreen, false);
|
||||
mat->ClearLayers();
|
||||
mat->AddTextureLayer(BurnTexture, false);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue