summaryrefslogtreecommitdiff
path: root/src/demos/winpos.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/demos/winpos.c')
-rw-r--r--src/demos/winpos.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/demos/winpos.c b/src/demos/winpos.c
index 8aa88a83..0621d896 100644
--- a/src/demos/winpos.c
+++ b/src/demos/winpos.c
@@ -11,7 +11,7 @@
#ifdef _WIN32
#include <windows.h>
#endif
-#include "glad/glad.h"
+#include "glad/gl.h"
#include "glut_wrap.h"
#include "readtex.h"
@@ -104,7 +104,7 @@ int main( int argc, char *argv[] )
exit(0);
}
- gladLoadGL();
+ gladLoaderLoadGL();
init();
@@ -112,5 +112,6 @@ int main( int argc, char *argv[] )
glutKeyboardFunc( key );
glutDisplayFunc( draw );
glutMainLoop();
+ gladLoaderUnloadGL();
return 0;
}