From eafffe7148585cf39ee54e716a722997725f1fc2 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Sun, 14 Apr 2019 20:20:43 +0200 Subject: [PATCH] sdl: ensure the OS X event pump is called on the main thread. --- src/ui/sdl-input.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/sdl-input.cpp b/src/ui/sdl-input.cpp index 8fca57fd..71fded7f 100644 --- a/src/ui/sdl-input.cpp +++ b/src/ui/sdl-input.cpp @@ -47,7 +47,7 @@ SdlInput::SdlInput(int app_w, int app_h, int screen_w, int screen_h) : m_app(vec2((float)app_w, (float)app_h)), m_screen(vec2((float)screen_w, (float)screen_h)) { -#if _WIN32 +#if _WIN32 || defined __APPLE__ m_tick_in_draw_thread = true; #endif