diff options
author | Brian Paul <[email protected]> | 2000-03-31 18:17:01 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2000-03-31 18:17:01 +0000 |
commit | 962f4269153ba954e137aab94ff4eaad4a7b02ae (patch) | |
tree | d3c1dddc04092bbe0893548ad0af2dff315786dd | |
parent | aa51bb083bf392962a6828cdd6a8c804aa19bd42 (diff) |
fixed mistake in glXGetConfig(GLX_VISUAL_CAVEAT_EXT)
-rw-r--r-- | src/mesa/drivers/x11/fakeglx.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mesa/drivers/x11/fakeglx.c b/src/mesa/drivers/x11/fakeglx.c index 2996dd79713..8ffdd34458b 100644 --- a/src/mesa/drivers/x11/fakeglx.c +++ b/src/mesa/drivers/x11/fakeglx.c @@ -1,4 +1,4 @@ -/* $Id: fakeglx.c,v 1.29 2000/03/31 01:17:52 brianp Exp $ */ +/* $Id: fakeglx.c,v 1.30 2000/03/31 18:17:01 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -1516,7 +1516,11 @@ Fake_glXGetConfig( Display *dpy, XVisualInfo *visinfo, */ case GLX_VISUAL_CAVEAT_EXT: /* test for zero, just in case */ - return (glxvis->VisualCaveat > 0) ? glxvis->VisualCaveat : GLX_NONE_EXT; + if (glxvis->VisualCaveat > 0) + *value = glxvis->VisualCaveat; + else + *value = GLX_NONE_EXT; + return 0; /* * Extensions |