summaryrefslogtreecommitdiff
path: root/src/demos/isosurf.c
diff options
context:
space:
mode:
authorHoe Hao Cheng <haochengho12907@gmail.com>2023-03-27 22:58:47 +0800
committerErik Faye-Lund <erik.faye-lund@collabora.com>2023-03-29 08:51:34 +0000
commit1bf0690e75ce79b48664656381db760e40702701 (patch)
treedfca6c1471f8584e24504b38ba917bfa9db0b33e /src/demos/isosurf.c
parente16117fc92688d76a042ad2c590c77d5a987a4ac (diff)
downloadmesa-demos-1bf0690e75ce79b48664656381db760e40702701.tar.gz
treewide: switch to glad2
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Diffstat (limited to 'src/demos/isosurf.c')
-rw-r--r--src/demos/isosurf.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/demos/isosurf.c b/src/demos/isosurf.c
index d12bc70d..793d3473 100644
--- a/src/demos/isosurf.c
+++ b/src/demos/isosurf.c
@@ -32,7 +32,7 @@
#include <windows.h>
#undef CLIP_MASK
#endif
-#include <glad/glad.h>
+#include "glad/gl.h"
#include "glut_wrap.h"
#include "readtex.h"
@@ -1066,7 +1066,7 @@ int main(int argc, char **argv)
exit(0);
}
- gladLoadGL();
+ gladLoaderLoadGL();
/* Make sure server supports vertex arrays */
if (!GLAD_GL_VERSION_1_1)
@@ -1134,5 +1134,6 @@ int main(int argc, char **argv)
glutDisplayFunc(Display);
glutMainLoop();
+ gladLoaderUnloadGL();
return 0;
}