diff options
Diffstat (limited to 'src/demos/stex3d.c')
-rw-r--r-- | src/demos/stex3d.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/demos/stex3d.c b/src/demos/stex3d.c index ad773645..4dd07a21 100644 --- a/src/demos/stex3d.c +++ b/src/demos/stex3d.c @@ -18,7 +18,7 @@ #include <stdio.h> #include <stdlib.h> #include <math.h> -#include <glad/glad.h> +#include "glad/gl.h" #include "glut_wrap.h" @@ -676,7 +676,7 @@ main(int argc, char **argv) exit(0); } - gladLoadGL(); + gladLoaderLoadGL(); init(); @@ -689,6 +689,7 @@ main(int argc, char **argv) if (animate) glutIdleFunc(Idle); glutMainLoop(); + gladLoaderUnloadGL(); return 0; } |