diff options
author | Brian Paul <[email protected]> | 2013-05-20 16:13:53 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2013-05-21 07:35:12 -0600 |
commit | 1e9875acbe0a1204e144b12b66b5b0ec55664e2c (patch) | |
tree | 96f05042faac914d7b145a8186160fd95bfc8d77 /src/gallium | |
parent | 8cabc7be1dd61bd4acf3669ae605361da64a1e8a (diff) |
st/glx/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]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/state_trackers/glx/xlib/glx_api.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gallium/state_trackers/glx/xlib/glx_api.c b/src/gallium/state_trackers/glx/xlib/glx_api.c index 88f58863fff..a66ebc8e8a4 100644 --- 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; } |