handle texture death

finally fixes resize
This commit is contained in:
tildearrow 2024-05-15 19:52:05 -05:00
parent d00cdabe6e
commit f66d723251
6 changed files with 28 additions and 1 deletions

View file

@ -792,6 +792,9 @@ void FurnaceGUI::drawTutorial() {
}
if (cvTex==NULL) {
cvTex=rend->createTexture(true,320,224,false,bestTexFormat);
} else if (!rend->isTextureValid(cvTex)) {
rend->destroyTexture(cvTex);
cvTex=rend->createTexture(true,320,224,false,bestTexFormat);
}
if (cv->pleaseInitSongs) {