summaryrefslogtreecommitdiff
path: root/src/demos/arbocclude.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/demos/arbocclude.c')
-rw-r--r--src/demos/arbocclude.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/demos/arbocclude.c b/src/demos/arbocclude.c
index 9015418e..40e2543f 100644
--- a/src/demos/arbocclude.c
+++ b/src/demos/arbocclude.c
@@ -29,7 +29,7 @@
#include <stdlib.h>
#include <string.h>
#include <math.h>
-#include <glad/glad.h>
+#include "glad/gl.h"
#include "glut_wrap.h"
#define NUM_OCC 10
@@ -272,7 +272,7 @@ int main( int argc, char *argv[] )
glutInit( &argc, argv );
glutInitDisplayMode( GLUT_RGB | GLUT_DOUBLE | GLUT_DEPTH );
Win = glutCreateWindow(argv[0]);
- gladLoadGL();
+ gladLoaderLoadGL();
glutReshapeFunc( Reshape );
glutKeyboardFunc( Key );
glutSpecialFunc( SpecialKey );
@@ -283,5 +283,6 @@ int main( int argc, char *argv[] )
glutDisplayFunc( Display );
Init();
glutMainLoop();
+ gladLoaderUnloadGL();
return 0;
}