SDL: Add SDL_QUIT for GB runloop

This commit is contained in:
Jeffrey Pfau 2016-01-21 19:27:42 -08:00
parent c59bfd173d
commit 52adcb68db
1 changed files with 3 additions and 0 deletions

View File

@ -136,6 +136,9 @@ void mSDLGLRunloopGB(struct mSDLRenderer* renderer, void* user) {
}
}
}
if (event.type == SDL_QUIT) {
return;
}
#if SDL_VERSION_ATLEAST(2, 0, 0)
// Event handling can change the size of the screen