X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fglew%2Fvisualinfo.c;h=f3ae91f2b4f1d6945b3cee5f6335e3775c2c1a43;hb=5569faf05abd550b81649f3961c743448e708825;hp=384313df220da81e2401c02347923423bba87915;hpb=e97681c7f551a2a2a6bd5eff0f4192a870c816c0;p=mesa.git diff --git a/src/glew/visualinfo.c b/src/glew/visualinfo.c index 384313df220..f3ae91f2b4f 100644 --- a/src/glew/visualinfo.c +++ b/src/glew/visualinfo.c @@ -1056,7 +1056,7 @@ GLboolean CreateContext (GLContext* ctx) aglDestroyPixelFormat(pf); /*aglSetDrawable(ctx, GetWindowPort(wnd));*/ ctx->octx = aglGetCurrentContext(); - if (NULL == aglSetCurrentContext(ctx->ctx)) return GL_TRUE; + if (GL_FALSE == aglSetCurrentContext(ctx->ctx)) return GL_TRUE; return GL_FALSE; }