mirror of
https://github.com/MichaelFisher1997/opengl-cpp.git
synced 2025-10-18 12:17:45 +00:00
fized our error message make added a glDeleteProgram call when the application ends
This commit is contained in:
@@ -125,6 +125,7 @@ void SdlWindow::run() {
|
|||||||
update();
|
update();
|
||||||
render();
|
render();
|
||||||
}
|
}
|
||||||
|
glDeleteProgram(shader);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SdlWindow::processEvents() {
|
void SdlWindow::processEvents() {
|
||||||
|
|||||||
Reference in New Issue
Block a user