diff options
Diffstat (limited to 'src/trivial/readpixels.c')
| -rw-r--r-- | src/trivial/readpixels.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/trivial/readpixels.c b/src/trivial/readpixels.c index fb88570c..c8052315 100644 --- a/src/trivial/readpixels.c +++ b/src/trivial/readpixels.c @@ -3,7 +3,7 @@ */ -#include <glad/glad.h> +#include "glad/gl.h" #include <stdio.h> #include <string.h> #include <stdlib.h> @@ -92,7 +92,7 @@ int main(int argc, char **argv) if (argc > 1) Zoom = atof(argv[1]); - gladLoadGL(); + gladLoaderLoadGL(); Init(); @@ -100,5 +100,6 @@ int main(int argc, char **argv) glutKeyboardFunc(Key); glutDisplayFunc(Draw); glutMainLoop(); + gladLoaderUnloadGL(); return 0; } |
