diff options
Diffstat (limited to 'src/state.c')
| -rw-r--r-- | src/state.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/state.c b/src/state.c index 79812e9..2e1a50f 100644 --- a/src/state.c +++ b/src/state.c @@ -94,7 +94,6 @@ bool stateInit( const char *exePath ) { state->materials[i] = NULL; } } - InitWindow( state->resolution.x, state->resolution.y, "ReiLua" ); /* Has to be after InitWindod where opengl context is created. */ state->materials[0] = malloc( sizeof( Material ) ); @@ -123,13 +122,13 @@ void stateFree() { for ( int i = 0; i < state->imageCount; ++i ) { if ( state->images[i] != NULL ) { UnloadImage( *state->images[i] ); - // free( state->images[i] ); + free( state->images[i] ); } } for ( int i = 0; i < state->textureCount; ++i ) { if ( state->textures[i] != NULL ) { texturesFreeTexture(i); - // free( state->textures[i] ); + free( state->textures[i] ); } } for ( int i = 0; i < state->fontCount; ++i ) { @@ -209,7 +208,6 @@ void stateFree() { } } #endif - if ( IsAudioDeviceReady() ) { CloseAudioDevice(); } |
