mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-04-18 19:12:44 +03:00
feat(gx): GLSDL window closes upon SDL_EVENT_QUIT
This commit is contained in:
parent
73912ed71a
commit
c0d5e2a0c8
@ -1,6 +1,7 @@
|
||||
#include "gx/glsdl/GLSDLWindow.hpp"
|
||||
#include "event/Types.hpp"
|
||||
#include "event/Input.hpp"
|
||||
#include "event/Event.hpp"
|
||||
|
||||
#include <bc/Debug.hpp>
|
||||
#include <map>
|
||||
@ -282,6 +283,7 @@ void GLSDLWindow::DispatchSDLEvent(const SDL_Event& event) {
|
||||
this->DispatchSDLMouseMotionEvent(event);
|
||||
break;
|
||||
case SDL_EVENT_QUIT:
|
||||
EventPostClose();
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user