Module: Mesa Branch: master Commit: 1e9875acbe0a1204e144b12b66b5b0ec55664e2c URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1e9875acbe0a1204e144b12b66b5b0ec55664e2c
Author: Brian Paul <[email protected]> Date: Mon May 20 16:13:53 2013 -0600 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]> --- 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 88f5886..a66ebc8 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; } _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
