UnloadTexture did not set texture id to NULL.

This commit is contained in:
jussi
2023-05-09 23:48:09 +03:00
parent 429a9dff96
commit 1e58f551bb
5 changed files with 5 additions and 5 deletions

View File

@@ -122,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 ) {