set TextureID = NULL after deleting the array
This commit is contained in:
parent
8a5bf456dc
commit
522f11b632
|
@ -133,6 +133,7 @@ static void DeleteTextures(void)
|
|||
{
|
||||
glDeleteTextures(NumTextures, TextureID);
|
||||
free(TextureID);
|
||||
TextureID = NULL;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue