aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-09-27 23:07:41 +0200
committerdec05eba <dec05eba@protonmail.com>2022-09-27 23:07:41 +0200
commit5cef3b469eb2ffa8e7b9f8758079b6fa414237e5 (patch)
tree43bc16627012bea53c5d6552031a4440d215bf80 /src
parent089b7b0a3e50c1acda282feb9925b4aa3f6cd0c6 (diff)
Properly detect failed dlsym for gl.c
Diffstat (limited to 'src')
-rw-r--r--src/gl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gl.c b/src/gl.c
index ead18dc..c66c9ce 100644
--- a/src/gl.c
+++ b/src/gl.c
@@ -100,7 +100,7 @@ int mgl_gl_load(mgl_gl *self) {
for(int i = 0; required_dlsym[i].func; ++i) {
*required_dlsym[i].func = dlsym_print_fail(self->handle, required_dlsym[i].name, 1);
- if(!required_dlsym[i].func) {
+ if(!*required_dlsym[i].func) {
mgl_gl_unload(self);
return -1;
}