summaryrefslogtreecommitdiff
path: root/src/tests/no_s3tc.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/no_s3tc.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/no_s3tc.c')
-rw-r--r--src/tests/no_s3tc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tests/no_s3tc.c b/src/tests/no_s3tc.c
index 5ac58716..bcc3dcc7 100644
--- a/src/tests/no_s3tc.c
+++ b/src/tests/no_s3tc.c
@@ -38,7 +38,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
-#include <glad/glad.h>
+#include "glad/gl.h"
#include "glut_wrap.h"
static unsigned data[16];
@@ -59,7 +59,7 @@ main( int argc, char ** argv )
glutInitWindowPosition( 0, 0 );
glutInitWindowSize( 300, 300 );
glutCreateWindow( "No S3TC Test" );
- gladLoadGL();
+ gladLoaderLoadGL();
gl_version = strtod( (const char *) glGetString( GL_VERSION ), NULL );
if ( ! glutExtensionSupported( "GL_ARB_texture_compression" )
@@ -94,5 +94,6 @@ main( int argc, char ** argv )
"0x%04x was generated instead.\n", GL_INVALID_ENUM, err );
}
+ gladLoaderUnloadGL();
return (err == GL_INVALID_ENUM) ? EXIT_SUCCESS : EXIT_FAILURE;
}