[Mesa-dev] [PATCH] glx: Add missing null check in glXCreateContextAttribsARB
Juha-Pekka Heikkila
juhapekka.heikkila at gmail.com
Thu Jan 16 06:59:57 PST 2014
Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila at gmail.com>
---
src/glx/create_context.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/glx/create_context.c b/src/glx/create_context.c
index 38e949a..de54117 100644
--- a/src/glx/create_context.c
+++ b/src/glx/create_context.c
@@ -88,6 +88,9 @@ glXCreateContextAttribsARB(Display *dpy, GLXFBConfig config,
(const uint32_t *) attrib_list,
&dummy_err);
#endif
+
+ if (gc == NULL)
+ return NULL;
}
gc->xid = xcb_generate_id(c);
--
1.8.1.2
More information about the mesa-dev
mailing list