summaryrefslogtreecommitdiff
path: root/src/fpglsl/fp-tri.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fpglsl/fp-tri.c')
-rw-r--r--src/fpglsl/fp-tri.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/fpglsl/fp-tri.c b/src/fpglsl/fp-tri.c
index bf06a48f..6bfac75a 100644
--- a/src/fpglsl/fp-tri.c
+++ b/src/fpglsl/fp-tri.c
@@ -8,7 +8,7 @@
#include <signal.h>
#endif
-#include <glad/glad.h>
+#include "glad/gl.h"
#include "glut_wrap.h"
#include "readtex.c"
@@ -413,7 +413,7 @@ int main(int argc, char **argv)
glutInitDisplayMode(GLUT_RGB | GLUT_SINGLE | GLUT_DEPTH);
args(argc, argv);
glutCreateWindow(filename ? filename : "fp-tri");
- gladLoadGL();
+ gladLoaderLoadGL();
glutReshapeFunc(Reshape);
glutKeyboardFunc(Key);
glutDisplayFunc(Display);
@@ -426,5 +426,6 @@ int main(int argc, char **argv)
}
#endif
glutMainLoop();
+ gladLoaderUnloadGL();
return 0;
}