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