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/xdemos/glxinfo.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/xdemos/glxinfo.c')
-rw-r--r-- | src/xdemos/glxinfo.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/xdemos/glxinfo.c b/src/xdemos/glxinfo.c index 50db0fc4..c9346563 100644 --- a/src/xdemos/glxinfo.c +++ b/src/xdemos/glxinfo.c @@ -37,7 +37,7 @@ #include <assert.h> #include <X11/Xlib.h> #include <X11/Xutil.h> -#include "glad/glad.h" +#include "glad/gl.h" #include <GL/glx.h> #include <stdio.h> #include <string.h> @@ -466,7 +466,7 @@ print_screen_info(Display *dpy, int scrnum, visinfo->visual, mask, &attr); if (glXMakeCurrent(dpy, win, ctx)) { - int loaded_gl = gladLoadGLLoader((GLADloadproc) glXGetProcAddressARB); + int loaded_gl = gladLoadGL((GLADloadfunc) glXGetProcAddressARB); if (!loaded_gl) { fprintf(stderr, "Error: unable to load GL functions\n"); @@ -608,6 +608,8 @@ print_screen_info(Display *dpy, int scrnum, if (coreProfile) free(glExtensions); + + gladLoaderUnloadGL(); } else { fprintf(stderr, "Error: glXMakeCurrent failed\n"); |