summaryrefslogtreecommitdiff
path: root/src/textures.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/textures.c')
-rw-r--r--src/textures.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/textures.c b/src/textures.c
index 291a7ad..04cd9d5 100644
--- a/src/textures.c
+++ b/src/textures.c
@@ -111,6 +111,7 @@ void texturesFreeTexture( size_t id ) {
UnloadRenderTexture( state->textures[id]->renderTexture );
break;
}
+ state->textures[id] = NULL;
}
}
/*
@@ -1746,9 +1747,7 @@ int ltexturesUnloadTexture( lua_State *L ) {
lua_pushboolean( L, false );
return 1;
}
- // UnloadTexture( *state->textures[ id ] );
texturesFreeTexture( texId );
- // state->textures[ id ] = NULL;
lua_pushboolean( L, true );
return 1;