summaryrefslogtreecommitdiff
path: root/src/glsl/fragcoord.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/glsl/fragcoord.c')
-rw-r--r--src/glsl/fragcoord.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/glsl/fragcoord.c b/src/glsl/fragcoord.c
index 5ccb1a4c..6a1a9e60 100644
--- a/src/glsl/fragcoord.c
+++ b/src/glsl/fragcoord.c
@@ -12,7 +12,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
-#include <glad/glad.h>
+#include "glad/gl.h"
#include "glut_wrap.h"
#include "shaderutil.h"
@@ -169,7 +169,7 @@ main(int argc, char *argv[])
glutInitWindowSize(WinWidth, WinHeight);
glutInitDisplayMode(GLUT_RGB | GLUT_DOUBLE);
win = glutCreateWindow(argv[0]);
- gladLoadGL();
+ gladLoaderLoadGL();
glutReshapeFunc(Reshape);
glutKeyboardFunc(Key);
glutDisplayFunc(Redisplay);
@@ -177,5 +177,6 @@ main(int argc, char *argv[])
Init();
glutIdleFunc(Anim ? Idle : NULL);
glutMainLoop();
+ gladLoaderUnloadGL();
return 0;
}