diff options
Diffstat (limited to 'progs/redbook/fogcoord.c')
-rw-r--r-- | progs/redbook/fogcoord.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/progs/redbook/fogcoord.c b/progs/redbook/fogcoord.c index 39e4689948d..17ef7ae5f3a 100644 --- a/progs/redbook/fogcoord.c +++ b/progs/redbook/fogcoord.c @@ -58,8 +58,7 @@ * three vertices of the triangle. */ -#define GL_GLEXT_PROTOTYPES - +#include <GL/glew.h> #include <GL/glut.h> #include <math.h> #include <stdlib.h> @@ -185,6 +184,7 @@ int main(int argc, char** argv) glutInitDisplayMode (GLUT_DOUBLE | GLUT_RGB); glutInitWindowSize(500, 500); glutCreateWindow(argv[0]); + glewInit(); init(); glutReshapeFunc (reshape); glutKeyboardFunc (keyboard); |