Skip to content
Snippets Groups Projects
Commit dbeb3e72 authored by Sindre Eiklid's avatar Sindre Eiklid
Browse files

clear water texture from memory after ending program

parent acc43cf0
No related branches found
No related tags found
No related merge requests found
......@@ -132,6 +132,7 @@ int main() {
//clear memory before ending program
glUseProgram(0);
glDeleteTextures(1, &terrainTex);
glDeleteTextures(1, &waterTex);
glfwTerminate();
return EXIT_SUCCESS;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment