diff options
author | Brian Paul <[email protected]> | 2011-12-30 08:38:49 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2011-12-30 08:38:58 -0700 |
commit | 797960dbeca675d8966752bc7a201f311123f3d5 (patch) | |
tree | 73926c81bd0090d77c12e9c82ebd2cddc5e2c201 /src/gallium/state_trackers/glx/xlib | |
parent | bec2ea8ef4aaf0704d3315561da106cd994b1bc6 (diff) |
st/glx/xlib: check for null attrib_list in glXCreateContextAttribsARB()
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=44234
Diffstat (limited to 'src/gallium/state_trackers/glx/xlib')
-rw-r--r-- | src/gallium/state_trackers/glx/xlib/glx_api.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/glx/xlib/glx_api.c b/src/gallium/state_trackers/glx/xlib/glx_api.c index d978286ff28..b68882b1f97 100644 --- a/src/gallium/state_trackers/glx/xlib/glx_api.c +++ b/src/gallium/state_trackers/glx/xlib/glx_api.c @@ -2665,7 +2665,7 @@ glXCreateContextAttribsARB(Display *dpy, GLXFBConfig config, GLX_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB); /* parse attrib_list */ - for (i = 0; !done && attrib_list[i]; i++) { + for (i = 0; !done && attrib_list && attrib_list[i]; i++) { switch (attrib_list[i]) { case GLX_CONTEXT_MAJOR_VERSION_ARB: majorVersion = attrib_list[++i]; |