summaryrefslogtreecommitdiff
path: root/src/lua_core.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua_core.c')
-rw-r--r--src/lua_core.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lua_core.c b/src/lua_core.c
index f0a81e1..e29a943 100644
--- a/src/lua_core.c
+++ b/src/lua_core.c
@@ -983,7 +983,7 @@ bool luaInit( int argn, const char **argc ) {
defineModelAnimation();
/* Define globals. */
defineGlobals();
- definePlatformGlobals();
+ platformDefineGlobals();
/* Register functions. */
luaRegister();
@@ -1078,6 +1078,9 @@ bool luaCallMain() {
}
void luaCallProcess() {
+#ifdef PLATFORM_DESKTOP_SDL
+ platformSendEvents();
+#endif
lua_State *L = state->luaState;
lua_pushcfunction( L, luaTraceback );
@@ -1115,7 +1118,6 @@ void luaCallDraw() {
state->run = false;
return;
}
-
EndDrawing();
}
lua_pop( L, -1 );