handle texture death
finally fixes resize
This commit is contained in:
parent
d00cdabe6e
commit
f66d723251
6 changed files with 28 additions and 1 deletions
|
|
@ -1478,7 +1478,7 @@ void FurnaceGUI::drawSampleEdit() {
|
|||
}
|
||||
}
|
||||
|
||||
if (sampleTex==NULL || sampleTexW!=avail.x || sampleTexH!=avail.y) {
|
||||
if (sampleTex==NULL || sampleTexW!=avail.x || sampleTexH!=avail.y || !rend->isTextureValid(sampleTex)) {
|
||||
if (sampleTex!=NULL) {
|
||||
rend->destroyTexture(sampleTex);
|
||||
sampleTex=NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue