summaryrefslogtreecommitdiff
path: root/xc/lib/GL
diff options
context:
space:
mode:
authorbrianp <brianp>2003-04-17 23:07:09 +0000
committerbrianp <brianp>2003-04-17 23:07:09 +0000
commitcd16b014ba9335cc85b84a216ac1a2c882439645 (patch)
tree71c9a62cb70dad391c746cbe8e72c56da2256f8c /xc/lib/GL
parent59d530b7d19890c8b2a47c8858fa8876878b266f (diff)
don't immediately check if vis is NULL (Suzy Deffeyes)
Diffstat (limited to 'xc/lib/GL')
-rw-r--r--xc/lib/GL/glx/glxcmds.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/xc/lib/GL/glx/glxcmds.c b/xc/lib/GL/glx/glxcmds.c
index 6849bee8c..aa0198df9 100644
--- a/xc/lib/GL/glx/glxcmds.c
+++ b/xc/lib/GL/glx/glxcmds.c
@@ -99,7 +99,7 @@ GLXContext CreateContext(Display *dpy, XVisualInfo *vis,
__GLXdisplayPrivate *priv;
#endif
- if (!dpy || !vis)
+ if (!dpy )
return NULL;
opcode = __glXSetupForCommand(dpy);
@@ -170,6 +170,8 @@ GLXContext CreateContext(Display *dpy, XVisualInfo *vis,
if (None == contextID) {
+ if (!vis)
+ return NULL;
#ifdef GLX_DIRECT_RENDERING
/*
** Create the direct rendering context, if requested and