Also delete image texture when stopped

This commit is contained in:
Matt McWilliams 2024-10-22 18:08:21 -04:00
parent 2067cf37ad
commit 4a81201798
1 changed files with 1 additions and 0 deletions

View File

@ -165,6 +165,7 @@ void display () {
actionDisplay();
} else if (state.getAction() == STOP) {
data = actionStop();
glDeleteTextures(1, &imageTexture);
}
state.setInactive();
}