Ver código fonte

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>
tags/mesa-9.2-rc1
Brian Paul 12 anos atrás
pai
commit
9772284df2
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1
    1
      src/mesa/drivers/x11/fakeglx.c

+ 1
- 1
src/mesa/drivers/x11/fakeglx.c Ver arquivo

@@ -1551,7 +1551,7 @@ Fake_glXIsDirect( Display *dpy, GLXContext ctx )
{
struct fake_glx_context *glxCtx = (struct fake_glx_context *) ctx;
(void) dpy;
return glxCtx->xmesaContext->direct;
return glxCtx ? glxCtx->xmesaContext->direct : False;
}



Carregando…
Cancelar
Salvar