summaryrefslogtreecommitdiff
path: root/src/redbook/histogram.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/redbook/histogram.c')
-rw-r--r--src/redbook/histogram.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/redbook/histogram.c b/src/redbook/histogram.c
index c5729e2b..57fa795c 100644
--- a/src/redbook/histogram.c
+++ b/src/redbook/histogram.c
@@ -46,7 +46,7 @@
* use of the glHistogram() function.
*/
-#include <glad/glad.h>
+#include "glad/gl.h"
#include "glut_wrap.h"
#include <assert.h>
#include <stdlib.h>
@@ -203,11 +203,12 @@ int main(int argc, char** argv)
glutInitWindowSize(width, height);
glutInitWindowPosition(100, 100);
glutCreateWindow(argv[0]);
- gladLoadGL();
+ gladLoaderLoadGL();
init();
glutReshapeFunc(reshape);
glutKeyboardFunc(keyboard);
glutDisplayFunc(display);
glutMainLoop();
+ gladLoaderUnloadGL();
return 0;
}