summaryrefslogtreecommitdiff
path: root/src/glsl/shtest.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/glsl/shtest.c')
-rw-r--r--src/glsl/shtest.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/glsl/shtest.c b/src/glsl/shtest.c
index 161a8f39..c1dbe776 100644
--- a/src/glsl/shtest.c
+++ b/src/glsl/shtest.c
@@ -33,7 +33,7 @@
#include <stdlib.h>
#include <string.h>
#include <math.h>
-#include <glad/glad.h>
+#include "glad/gl.h"
#include "glut_wrap.h"
#include "shaderutil.h"
#include "readtex.h"
@@ -694,7 +694,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);
@@ -703,6 +703,7 @@ main(int argc, char *argv[])
Init();
Keys();
glutMainLoop();
+ gladLoaderUnloadGL();
return 0;
}