diff options
Diffstat (limited to 'src/trivial/fs-tri.c')
-rw-r--r-- | src/trivial/fs-tri.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/trivial/fs-tri.c b/src/trivial/fs-tri.c index 3022b097..863b1766 100644 --- a/src/trivial/fs-tri.c +++ b/src/trivial/fs-tri.c @@ -5,7 +5,7 @@ #include <stdio.h> #include <stdlib.h> #include <math.h> -#include <GL/glew.h> +#include <glad/glad.h> #include "glut_wrap.h" @@ -156,7 +156,7 @@ Init(void) "}\n"; #endif - if (!GLEW_VERSION_2_0) { + if (!GLAD_GL_VERSION_2_0) { printf("This program requires OpenGL 2.x\n"); exit(1); } @@ -194,7 +194,7 @@ main(int argc, char *argv[]) glutInitWindowSize(200, 200); glutInitDisplayMode(GLUT_RGB | GLUT_DOUBLE | GLUT_DEPTH); win = glutCreateWindow(argv[0]); - glewInit(); + gladLoadGL(); glutReshapeFunc(Reshape); glutKeyboardFunc(Key); glutSpecialFunc(SpecialKey); |