diff options
Diffstat (limited to 'src/tests/zdrawpix.c')
-rw-r--r-- | src/tests/zdrawpix.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tests/zdrawpix.c b/src/tests/zdrawpix.c index 40e1844e..18e01b9a 100644 --- a/src/tests/zdrawpix.c +++ b/src/tests/zdrawpix.c @@ -13,7 +13,7 @@ #include <stdio.h> #include <stdlib.h> #include <math.h> -#include <glad/glad.h> +#include "glad/gl.h" #include "glut_wrap.h" #include "../util/showbuffer.c" @@ -180,7 +180,7 @@ main(int argc, char *argv[]) glutInitWindowSize(400, 400); glutInitDisplayMode(GLUT_RGB | GLUT_DOUBLE | GLUT_DEPTH); Win = glutCreateWindow(argv[0]); - gladLoadGL(); + gladLoaderLoadGL(); glutReshapeFunc(Reshape); glutKeyboardFunc(Key); glutSpecialFunc(SpecialKey); @@ -189,5 +189,6 @@ main(int argc, char *argv[]) glutIdleFunc(Idle); Init(); glutMainLoop(); + gladLoaderUnloadGL(); return 0; } |