summaryrefslogtreecommitdiff
path: root/src/redbook/combiner.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/redbook/combiner.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/redbook/combiner.c')
-rw-r--r--src/redbook/combiner.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/redbook/combiner.c b/src/redbook/combiner.c
index fb413c5d..8681a14c 100644
--- a/src/redbook/combiner.c
+++ b/src/redbook/combiner.c
@@ -58,7 +58,7 @@
* scaling factor and reversing the order of subtraction
* for a combination function.
*/
-#include <glad/glad.h>
+#include "glad/gl.h"
#include "glut_wrap.h"
#include <stdlib.h>
#include <stdio.h>
@@ -369,11 +369,12 @@ int main(int argc, char** argv)
glutInitWindowSize(400, 400);
glutInitWindowPosition(100, 100);
glutCreateWindow(argv[0]);
- gladLoadGL();
+ gladLoaderLoadGL();
init();
glutDisplayFunc(display);
glutReshapeFunc(reshape);
glutKeyboardFunc(keyboard);
glutMainLoop();
+ gladLoaderUnloadGL();
return 0;
}