mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 11:18:08 +02:00
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 <jfonseca@vmware.com>
This commit is contained in:
parent
8cabc7be1d
commit
1e9875acbe
1 changed files with 1 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue