Module: Mesa
Branch: 9.1
Commit: 8c4ba7a921694522105a901dc03140dc446622a8
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=8c4ba7a921694522105a901dc03140dc446622a8

Author: Brian Paul <[email protected]>
Date:   Mon May 20 16:15:24 2013 -0600

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 <[email protected]>
(cherry picked from commit 9772284df2cba1dd30ec401fd19c5a212197b411)

---

 src/mesa/drivers/x11/fakeglx.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/drivers/x11/fakeglx.c b/src/mesa/drivers/x11/fakeglx.c
index 2208d5e..c060711 100644
--- a/src/mesa/drivers/x11/fakeglx.c
+++ b/src/mesa/drivers/x11/fakeglx.c
@@ -1550,7 +1550,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;
 }
 
 

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to