diff options
author | dec05eba <dec05eba@protonmail.com> | 2022-09-27 23:07:41 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2022-09-27 23:07:41 +0200 |
commit | 5cef3b469eb2ffa8e7b9f8758079b6fa414237e5 (patch) | |
tree | 43bc16627012bea53c5d6552031a4440d215bf80 /src | |
parent | 089b7b0a3e50c1acda282feb9925b4aa3f6cd0c6 (diff) |
Properly detect failed dlsym for gl.c
Diffstat (limited to 'src')
-rw-r--r-- | src/gl.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |