feat(gx): GLSDL window closes upon SDL_EVENT_QUIT

This commit is contained in:
superp00t 2023-11-24 23:52:34 -05:00
parent 73912ed71a
commit c0d5e2a0c8

View File

@ -1,6 +1,7 @@
#include "gx/glsdl/GLSDLWindow.hpp" #include "gx/glsdl/GLSDLWindow.hpp"
#include "event/Types.hpp" #include "event/Types.hpp"
#include "event/Input.hpp" #include "event/Input.hpp"
#include "event/Event.hpp"
#include <bc/Debug.hpp> #include <bc/Debug.hpp>
#include <map> #include <map>
@ -282,6 +283,7 @@ void GLSDLWindow::DispatchSDLEvent(const SDL_Event& event) {
this->DispatchSDLMouseMotionEvent(event); this->DispatchSDLMouseMotionEvent(event);
break; break;
case SDL_EVENT_QUIT: case SDL_EVENT_QUIT:
EventPostClose();
break; break;
default: default:
break; break;