summaryrefslogtreecommitdiff
path: root/src/demos/shadowtex.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/demos/shadowtex.c')
-rw-r--r--src/demos/shadowtex.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/demos/shadowtex.c b/src/demos/shadowtex.c
index 74587408..22e88b55 100644
--- a/src/demos/shadowtex.c
+++ b/src/demos/shadowtex.c
@@ -36,7 +36,7 @@
#include <stdlib.h>
#include <string.h>
#include <math.h>
-#include <glad/glad.h>
+#include "glad/gl.h"
#include "glut_wrap.h"
#define DEG_TO_RAD (3.14159 / 180.0)
@@ -1025,7 +1025,7 @@ main(int argc, char *argv[])
glutInit(&argc, argv);
glutInitDisplayMode(GLUT_RGB | GLUT_DOUBLE | GLUT_DEPTH | GLUT_STENCIL);
glutCreateWindow(argv[0]);
- gladLoadGL();
+ gladLoaderLoadGL();
glutReshapeFunc(Reshape);
glutKeyboardFunc(Key);
glutSpecialFunc(SpecialKey);
@@ -1035,5 +1035,6 @@ main(int argc, char *argv[])
Init();
PrintHelp();
glutMainLoop();
+ gladLoaderUnloadGL();
return 0;
}