projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8cabc7b
)
st/glx/xlib: check for null ctx pointer in glXIsDirect()
author
Brian Paul
<brianp@vmware.com>
Mon, 20 May 2013 22:13:53 +0000
(16:13 -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/gallium/state_trackers/glx/xlib/glx_api.c
patch
|
blob
|
history
diff --git
a/src/gallium/state_trackers/glx/xlib/glx_api.c
b/src/gallium/state_trackers/glx/xlib/glx_api.c
index 88f58863fffb8b36397de7ec3bc2b25b9bd9e1ca..a66ebc8e8a41c76bbc62ee8a51860dae68155fb5 100644
(file)
--- a/
src/gallium/state_trackers/glx/xlib/glx_api.c
+++ b/
src/gallium/state_trackers/glx/xlib/glx_api.c
@@
-1369,9
+1369,7
@@
glXDestroyContext( Display *dpy, GLXContext ctx )
PUBLIC Bool
glXIsDirect( Display *dpy, GLXContext ctx )
{
- GLXContext glxCtx = ctx;
- (void) ctx;
- return glxCtx->isDirect;
+ return ctx ? ctx->isDirect : False;
}