- fix burn crash on vulkan
This commit is contained in:
parent
cace5079fe
commit
d5761740d3
4 changed files with 17 additions and 1 deletions
|
|
@ -336,7 +336,7 @@ void Wiper_Burn::SetTextures(FTexture *startscreen, FTexture *endscreen)
|
|||
startScreen = startscreen;
|
||||
endScreen = endscreen;
|
||||
BurnTexture = new FBurnTexture(WIDTH, HEIGHT);
|
||||
auto mat = FMaterial::ValidateTexture(startscreen, false);
|
||||
auto mat = FMaterial::ValidateTexture(endScreen, false);
|
||||
mat->AddTextureLayer(BurnTexture);
|
||||
}
|
||||
|
||||
|
|
@ -374,6 +374,8 @@ bool Wiper_Burn::Run(int ticks)
|
|||
}
|
||||
|
||||
BurnTexture->SystemTextures.Clean(true, true);
|
||||
endScreen->SystemTextures.Clean(false, false);
|
||||
|
||||
const uint8_t *src = BurnArray;
|
||||
uint32_t *dest = (uint32_t *)BurnTexture->GetBuffer();
|
||||
for (int y = HEIGHT; y != 0; --y)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue