set TextureID = NULL after deleting the array
authorBrian Paul <brian.paul@tungstengraphics.com>
Thu, 1 May 2008 22:21:43 +0000 (16:21 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Fri, 2 May 2008 15:31:38 +0000 (09:31 -0600)
progs/tests/manytex.c

index 28f7d3b3f2d98d68e5d442c9bb2673c2eeffe7d3..900e5834fe89d245763d19180f1a1b78c3643bcf 100644 (file)
@@ -133,6 +133,7 @@ static void DeleteTextures(void)
 {
    glDeleteTextures(NumTextures, TextureID);
    free(TextureID);
+   TextureID = NULL;
 }