Also delete image texture when stopped
This commit is contained in:
parent
2067cf37ad
commit
4a81201798
|
@ -165,6 +165,7 @@ void display () {
|
||||||
actionDisplay();
|
actionDisplay();
|
||||||
} else if (state.getAction() == STOP) {
|
} else if (state.getAction() == STOP) {
|
||||||
data = actionStop();
|
data = actionStop();
|
||||||
|
glDeleteTextures(1, &imageTexture);
|
||||||
}
|
}
|
||||||
state.setInactive();
|
state.setInactive();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue