summaryrefslogtreecommitdiff
path: root/src/tests/arbfpspec.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/tests/arbfpspec.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/tests/arbfpspec.c')
-rw-r--r--src/tests/arbfpspec.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tests/arbfpspec.c b/src/tests/arbfpspec.c
index 82d5f33f..6ba78c00 100644
--- a/src/tests/arbfpspec.c
+++ b/src/tests/arbfpspec.c
@@ -8,7 +8,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
-#include <glad/glad.h>
+#include "glad/gl.h"
#include "glut_wrap.h"
static float Xrot = 0.0, Yrot = 0.0, Zrot = 0.0;
@@ -180,7 +180,7 @@ int main( int argc, char *argv[] )
glutInitWindowSize( 250, 250 );
glutInitDisplayMode( GLUT_RGB | GLUT_DOUBLE | GLUT_DEPTH );
glutCreateWindow(argv[0]);
- gladLoadGL();
+ gladLoaderLoadGL();
glutReshapeFunc( Reshape );
glutKeyboardFunc( Key );
glutSpecialFunc( SpecialKey );
@@ -189,5 +189,6 @@ int main( int argc, char *argv[] )
glutIdleFunc(Idle);
Init();
glutMainLoop();
+ gladLoaderUnloadGL();
return 0;
}