diff options
Diffstat (limited to 'src/demos/textures.c')
-rw-r--r-- | src/demos/textures.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/demos/textures.c b/src/demos/textures.c index cc43bda3..5fdb2502 100644 --- a/src/demos/textures.c +++ b/src/demos/textures.c @@ -6,7 +6,7 @@ #include <stdio.h> #include <stdlib.h> #include <math.h> -#include <glad/glad.h> +#include "glad/gl.h" #include "glut_wrap.h" #include "readtex.h" @@ -441,7 +441,7 @@ main(int argc, char *argv[]) glutInit(&argc, argv); glutInitDisplayMode(GLUT_RGB | GLUT_DOUBLE | GLUT_DEPTH); Win = glutCreateWindow(argv[0]); - gladLoadGL(); + gladLoaderLoadGL(); glutReshapeFunc(Reshape); glutKeyboardFunc(Key); glutSpecialFunc(SpecialKey); @@ -452,5 +452,6 @@ main(int argc, char *argv[]) Usage(); PrintState(); glutMainLoop(); + gladLoaderUnloadGL(); return 0; } |