mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 19:22:30 +00:00
feat(gx): GLSDL window closes upon SDL_EVENT_QUIT
This commit is contained in:
parent
73912ed71a
commit
c0d5e2a0c8
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue