vbo: if 'end' is out of bounds, clamp it
[mesa.git] / progs / tests / fog.c
index ecd9f533f990405deed129b96b61a4805328e4c0..b6cea8c080aa139b56255ba90a6690739c3fedd7 100644 (file)
  * Test to exercise fog modes and for comparison with GL_EXT_fog_coord.
  */
 
-#define GL_GLEXT_PROTOTYPES
 #include <stdio.h>
 #include <stdlib.h>
 #include <math.h>
+#include <GL/glew.h>
 #include <GL/glut.h>
 
 static int Width = 600;
@@ -190,6 +190,7 @@ int main( int argc, char *argv[] )
    glutInitWindowSize( Width, Height );
    glutInitDisplayMode( GLUT_RGB | GLUT_DOUBLE | GLUT_DEPTH );
    glutCreateWindow(argv[0]);
+   glewInit();
    glutReshapeFunc( Reshape );
    glutKeyboardFunc( Key );
    glutDisplayFunc( Display );