diff options
author | Hoe Hao Cheng <haochengho12907@gmail.com> | 2023-03-27 22:58:47 +0800 |
---|---|---|
committer | Erik Faye-Lund <erik.faye-lund@collabora.com> | 2023-03-29 08:51:34 +0000 |
commit | 1bf0690e75ce79b48664656381db760e40702701 (patch) | |
tree | dfca6c1471f8584e24504b38ba917bfa9db0b33e /src/tests/shader_api.c | |
parent | e16117fc92688d76a042ad2c590c77d5a987a4ac (diff) | |
download | mesa-demos-1bf0690e75ce79b48664656381db760e40702701.tar.gz |
treewide: switch to glad2
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Diffstat (limited to 'src/tests/shader_api.c')
-rw-r--r-- | src/tests/shader_api.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tests/shader_api.c b/src/tests/shader_api.c index efc100ae..3e5e181e 100644 --- a/src/tests/shader_api.c +++ b/src/tests/shader_api.c @@ -5,7 +5,7 @@ #include <string.h> #include <stdio.h> #include <stdlib.h> -#include <glad/glad.h> +#include "glad/gl.h" #include "glut_wrap.h" static void assert_test(const char *file, int line, int cond, const char *msg) @@ -327,7 +327,7 @@ int main(int argc, char **argv) { glutInit(&argc, argv); glutCreateWindow("Mesa bug demo"); - gladLoadGL(); + gladLoaderLoadGL(); if (!GLAD_GL_VERSION_2_0) { printf("Sorry, this test requires OpenGL 2.x GLSL support\n"); @@ -343,5 +343,6 @@ int main(int argc, char **argv) RUN_TEST(test_uniform_bool_conversion); /* Leave this one at the end, since it crashes Mesa's shader compiler */ RUN_TEST(test_uniform_multiple_samplers); + gladLoaderUnloadGL(); return 0; } |