mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-10 19:35:59 +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 "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;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user