Commit 8248b4af authored by Adam Jackson's avatar Adam Jackson 🎧
Browse files

glx: Add null pointer protection to __glGetProcAddress

This can't happen when GLX is the backing window system, but can
elsewhere.  We may as well protect against it at a high level.
Reviewed-by: Emma Anholt's avatarEric Anholt <>
Signed-off-by: Adam Jackson's avatarAdam Jackson <>
parent 128449dd
......@@ -554,7 +554,9 @@ __glXsetGetProcAddress(glx_gpa_proc get_proc_address)
void *__glGetProcAddress(const char *proc)
return _get_proc_address(proc);
void *ret = _get_proc_address(proc);
return ret ? ret : NoopDDA;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment