summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/x11
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2003-12-12 00:01:17 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2003-12-12 00:01:17 +0000
commita9a1c3f20f2d6aad4afc47cf2b29c5393fddb6b6 (patch)
tree9d1786d50e328d66ca7cfa3e6da035901047e066 /src/mesa/drivers/x11
parentc3fb2558f036ca8dd9f9a62269b57636ca3b5e4c (diff)
check for null dpy in Fake_glXGetConfig()
Diffstat (limited to 'src/mesa/drivers/x11')
-rw-r--r--src/mesa/drivers/x11/fakeglx.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/x11/fakeglx.c b/src/mesa/drivers/x11/fakeglx.c
index 1bab6d91a4..98003b0858 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 */