mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-01-25 01:50:42 +01:00
Fixed segfault when GLX is missing
This commit is contained in:
parent
038a1c540c
commit
9543fbf3bb
|
|
@ -1572,6 +1572,10 @@ int QueryExtension(const GLubyte*extensions, const char *name)
|
|||
const GLubyte *start;
|
||||
GLubyte *where, *terminator;
|
||||
|
||||
if (extensions == NULL) {
|
||||
extgl_error = 1;
|
||||
return 0;
|
||||
}
|
||||
/* Extension names should not have spaces. */
|
||||
where = (GLubyte *) strchr(name, ' ');
|
||||
if (where || *name == '\0')
|
||||
|
|
|
|||
Loading…
Reference in a new issue