summaryrefslogtreecommitdiff
path: root/src/state.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/state.c')
-rw-r--r--src/state.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/state.c b/src/state.c
index 6102a2d..b96b557 100644
--- a/src/state.c
+++ b/src/state.c
@@ -18,6 +18,12 @@ bool stateInit( int argn, const char **argc, const char *exePath ) {
state->luaState = NULL;
state->logLevelInvalid = LOG_ERROR;
+#ifdef GC_UNLOAD
+ state->gcUnload = true;
+#else
+ state->gcUnload = false;
+#endif
+
InitWindow( state->resolution.x, state->resolution.y, "ReiLua" );
if ( !IsWindowReady() ) {
@@ -28,6 +34,8 @@ bool stateInit( int argn, const char **argc, const char *exePath ) {
InitAudioDevice();
state->run = luaInit( argn, argc );
}
+ state->defaultFont = GetFontDefault();
+ state->defaultMaterial = LoadMaterialDefault();
return state->run;
}