summaryrefslogtreecommitdiff
path: root/src/trivial/long-fixed-func.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/trivial/long-fixed-func.c')
-rw-r--r--src/trivial/long-fixed-func.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/trivial/long-fixed-func.c b/src/trivial/long-fixed-func.c
index d49c6624..85d7ae31 100644
--- a/src/trivial/long-fixed-func.c
+++ b/src/trivial/long-fixed-func.c
@@ -5,7 +5,7 @@
-#include <glad/glad.h>
+#include "glad/gl.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
@@ -143,11 +143,12 @@ main(int argc, char **argv)
if (glutCreateWindow(*argv) == GL_FALSE) {
exit(1);
}
- gladLoadGL();
+ gladLoaderLoadGL();
glutReshapeFunc(Reshape);
glutKeyboardFunc(Key);
glutDisplayFunc(Draw);
Init();
glutMainLoop();
+ gladLoaderUnloadGL();
return 0;
}