check for null dpy in Fake_glXGetConfig()

This commit is contained in:
Brian Paul 2003-12-12 00:01:17 +00:00
parent c3fb2558f0
commit a9a1c3f20f
1 changed files with 3 additions and 0 deletions

View File

@ -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 */