diff options
Diffstat (limited to 'src/gallium/state_trackers')
-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; } |