projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e9875a
)
xlib: check for null ctx pointer in glXIsDirect()
author
Brian Paul
<brianp@vmware.com>
Mon, 20 May 2013 22:15:24 +0000
(16:15 -0600)
committer
Brian Paul
<brianp@vmware.com>
Tue, 21 May 2013 13:35:12 +0000
(07:35 -0600)
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>
src/mesa/drivers/x11/fakeglx.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/x11/fakeglx.c
b/src/mesa/drivers/x11/fakeglx.c
index daed4f4de4ebba7e1942ee0c7c8a8957661e6d58..c7fb327db719c276ee28aa3e06a01033331b2fa4 100644
(file)
--- 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
;
}