summaryrefslogtreecommitdiff
path: root/src/state.c
diff options
context:
space:
mode:
authorjussi2023-04-04 23:54:57 +0300
committerjussi2023-04-04 23:54:57 +0300
commit87c91dd0a5e41afd36d219d1bb030cde92c1474c (patch)
treeea3b251e09f198ecd19763f5834b493693c72a8e /src/state.c
parent6a7c660f33e8ec4d351c63779df27874124597c6 (diff)
downloadreilua-enhanced-87c91dd0a5e41afd36d219d1bb030cde92c1474c.tar.gz
reilua-enhanced-87c91dd0a5e41afd36d219d1bb030cde92c1474c.tar.bz2
reilua-enhanced-87c91dd0a5e41afd36d219d1bb030cde92c1474c.zip
v0.4.
Diffstat (limited to 'src/state.c')
-rw-r--r--src/state.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/state.c b/src/state.c
index 178c911..650e8b7 100644
--- a/src/state.c
+++ b/src/state.c
@@ -32,7 +32,7 @@ bool stateInit( const char *exePath ) {
state->fontAlloc = ALLOC_PAGE_SIZE;
state->fontCount = 1;
state->fonts = malloc( state->fontAlloc * sizeof( Font* ) );
- /* Wavess. */
+ /* Waves. */
state->waveAlloc = ALLOC_PAGE_SIZE;
state->waveCount = 0;
state->waves = malloc( state->waveAlloc * sizeof( Wave* ) );
@@ -167,7 +167,6 @@ void stateFree() {
}
for ( int i = 0; i < state->modelCount; ++i ) {
if ( state->models[i] != NULL ) {
- // UnloadModel( *state->models[i] );
UnloadModelKeepMeshes( *state->models[i] );
free( state->models[i] );
}
@@ -199,7 +198,8 @@ void stateFree() {
free( state->shaders[i] );
}
}
-#if !defined(PLATFORM_RPI) || !defined(PLATFORM_DRM)
+
+#if !defined( PLATFORM_RPI ) || !defined( PLATFORM_DRM )
for ( int i = 0; i < state->lightCount; ++i ) {
if ( state->lights[i] != NULL ) {
free( state->lights[i] );