diff options
author | Brian Paul <[email protected]> | 2003-12-12 00:01:17 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2003-12-12 00:01:17 +0000 |
commit | a9a1c3f20f2d6aad4afc47cf2b29c5393fddb6b6 (patch) | |
tree | 9d1786d50e328d66ca7cfa3e6da035901047e066 /src/mesa/drivers | |
parent | c3fb2558f036ca8dd9f9a62269b57636ca3b5e4c (diff) |
check for null dpy in Fake_glXGetConfig()
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/x11/fakeglx.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 */ |