summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/x11
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2013-05-20 16:15:24 -0600
committerBrian Paul <brianp@vmware.com>2013-05-21 07:35:12 -0600
commit9772284df2cba1dd30ec401fd19c5a212197b411 (patch)
tree20353182db1a90923f915c23b33a5ec2cbc46a67 /src/mesa/drivers/x11
parent1e9875acbe0a1204e144b12b66b5b0ec55664e2c (diff)
downloadexternal_mesa3d-9772284df2cba1dd30ec401fd19c5a212197b411.zip
external_mesa3d-9772284df2cba1dd30ec401fd19c5a212197b411.tar.gz
external_mesa3d-9772284df2cba1dd30ec401fd19c5a212197b411.tar.bz2
xlib: check for null ctx pointer in glXIsDirect()
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=64745 Note: This is a candidate for the stable branches. Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Diffstat (limited to 'src/mesa/drivers/x11')
-rw-r--r--src/mesa/drivers/x11/fakeglx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/x11/fakeglx.c b/src/mesa/drivers/x11/fakeglx.c
index daed4f4..c7fb327 100644
--- a/src/mesa/drivers/x11/fakeglx.c
+++ b/src/mesa/drivers/x11/fakeglx.c
@@ -1551,7 +1551,7 @@ Fake_glXIsDirect( Display *dpy, GLXContext ctx )
{
struct fake_glx_context *glxCtx = (struct fake_glx_context *) ctx;
(void) dpy;
- return glxCtx->xmesaContext->direct;
+ return glxCtx ? glxCtx->xmesaContext->direct : False;
}