summaryrefslogtreecommitdiff
path: root/src/state.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/state.c')
-rw-r--r--src/state.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/state.c b/src/state.c
index 650e8b7..e9e12f4 100644
--- a/src/state.c
+++ b/src/state.c
@@ -2,6 +2,7 @@
#include "state.h"
#include "lua_core.h"
#include "textures.h"
+#include "models.h"
State *state;
@@ -167,7 +168,9 @@ void stateFree() {
}
for ( int i = 0; i < state->modelCount; ++i ) {
if ( state->models[i] != NULL ) {
+ //TODO Test if UnloadModel causes segfaults on exit.
UnloadModelKeepMeshes( *state->models[i] );
+ // UnloadModel( *state->models[i] );
free( state->models[i] );
}
}