Delete image texture after used
This commit is contained in:
parent
95158f96e6
commit
2067cf37ad
|
@ -186,6 +186,7 @@ void display () {
|
||||||
displaying = false;
|
displaying = false;
|
||||||
//timing = false;
|
//timing = false;
|
||||||
completed = true;
|
completed = true;
|
||||||
|
glDeleteTextures(1, &imageTexture);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue