From: Brian Paul Date: Fri, 12 Dec 2003 00:01:17 +0000 (+0000) Subject: check for null dpy in Fake_glXGetConfig() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a9a1c3f20f2d6aad4afc47cf2b29c5393fddb6b6;p=mesa.git check for null dpy in Fake_glXGetConfig() --- diff --git a/src/mesa/drivers/x11/fakeglx.c b/src/mesa/drivers/x11/fakeglx.c index 1bab6d91a41..98003b08581 100644 --- a/src/mesa/drivers/x11/fakeglx.c +++ b/src/mesa/drivers/x11/fakeglx.c @@ -1727,6 +1727,9 @@ Fake_glXGetConfig( Display *dpy, XVisualInfo *visinfo, { XMesaVisual xmvis; + if (!dpy || !visInfo) + return GLX_BAD_ATTRIBUTE; + xmvis = find_glx_visual( dpy, visinfo ); if (!xmvis) { /* this visual wasn't obtained with glXChooseVisual */