This commit is contained in:
Luke Benstead 2022-05-21 20:16:50 +01:00
parent 9a50917062
commit 193f0bdc49

View File

@ -185,10 +185,8 @@ void SceneFinish() {
SDL_RenderPresent(RENDERER); SDL_RenderPresent(RENDERER);
/* Only sensible place to hook the quit signal */ /* Only sensible place to hook the quit signal */
SDL_Event e;
SDL_Event e = {0}; while (SDL_PollEvent(&e)) {
while (SDL_PollEvent(&e))
switch (e.type) { switch (e.type) {
case SDL_QUIT: case SDL_QUIT:
exit(0); exit(0);
@ -196,6 +194,7 @@ void SceneFinish() {
default: default:
break; break;
} }
}
} }
void UploadMatrix4x4(const Matrix4x4* mat) { void UploadMatrix4x4(const Matrix4x4* mat) {