From fe15e836bd87963d10bd301a3a24652763059e0d Mon Sep 17 00:00:00 2001 From: jussi Date: Thu, 6 Apr 2023 19:19:44 +0300 Subject: Switched to Raylib vertion 4.5. Removed some functions and added others. Main changes to camera3D. --- src/state.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/state.c') 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] ); } } -- cgit v1.2.3