diff options
Diffstat (limited to 'src/state.c')
| -rw-r--r-- | src/state.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/state.c b/src/state.c index 860bc45..7a3ba32 100644 --- a/src/state.c +++ b/src/state.c @@ -186,11 +186,13 @@ void stateFree() { free( state->shaders[i] ); } } +#if !defined(PLATFORM_RPI) || !defined(PLATFORM_DRM) for ( int i = 0; i < state->lightCount; ++i ) { if ( state->lights[i] != NULL ) { free( state->lights[i] ); } } +#endif if ( IsAudioDeviceReady() ) { CloseAudioDevice(); |
