X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=progs%2Ftests%2Ffog.c;h=b6cea8c080aa139b56255ba90a6690739c3fedd7;hb=3100f31b747a3294e1e7043ed9a61d8b90bf423a;hp=ecd9f533f990405deed129b96b61a4805328e4c0;hpb=896735e41296aef29278a9319ce53aa4485cf324;p=mesa.git diff --git a/progs/tests/fog.c b/progs/tests/fog.c index ecd9f533f99..b6cea8c080a 100644 --- a/progs/tests/fog.c +++ b/progs/tests/fog.c @@ -30,10 +30,10 @@ * Test to exercise fog modes and for comparison with GL_EXT_fog_coord. */ -#define GL_GLEXT_PROTOTYPES #include #include #include +#include #include 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 );