summaryrefslogtreecommitdiff
path: root/src/demos/copypix.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/demos/copypix.c')
-rw-r--r--src/demos/copypix.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/demos/copypix.c b/src/demos/copypix.c
index 164d8c01..3061e875 100644
--- a/src/demos/copypix.c
+++ b/src/demos/copypix.c
@@ -9,7 +9,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <glad/glad.h>
+#include "glad/gl.h"
#include "glut_wrap.h"
#include "readtex.h"
@@ -254,7 +254,7 @@ int main( int argc, char *argv[] )
glutInitDisplayMode( GLUT_RGB | GLUT_DOUBLE);
glutCreateWindow(argv[0]);
- gladLoadGL();
+ gladLoaderLoadGL();
Init(ciMode, filename);
Usage();
@@ -265,5 +265,6 @@ int main( int argc, char *argv[] )
glutDisplayFunc( Display );
glutMainLoop();
+ gladLoaderUnloadGL();
return 0;
}