progs/tests: compile with SCons and glew
[mesa.git] / progs / tests / manytex.c
index 28f7d3b3f2d98d68e5d442c9bb2673c2eeffe7d3..52e7e1de44a9f6e457bec43317ca82023ea0f99e 100644 (file)
@@ -1,4 +1,3 @@
-/* $Id: manytex.c,v 1.5 2005/09/15 01:58:39 brianp Exp $ */
 
 /*
  * test handling of many texture maps
@@ -14,6 +13,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <math.h>
+#include <GL/glew.h>
 #include <GL/glut.h>
 
 
@@ -133,6 +133,7 @@ static void DeleteTextures(void)
 {
    glDeleteTextures(NumTextures, TextureID);
    free(TextureID);
+   TextureID = NULL;
 }
 
 
@@ -336,6 +337,7 @@ int main( int argc, char *argv[] )
    glutInitWindowSize( WinWidth, WinHeight );
    glutInitDisplayMode( GLUT_RGB | GLUT_DOUBLE );
    Win = glutCreateWindow(argv[0]);
+   glewInit();
    glutReshapeFunc( Reshape );
    glutKeyboardFunc( Key );
    glutDisplayFunc( Display );