aboutsummaryrefslogtreecommitdiffstats
path: root/src/glew/visualinfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/glew/visualinfo.c')
-rw-r--r--src/glew/visualinfo.c2
1 files changed, 1 insertions, 1 deletions
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;
}