summaryrefslogtreecommitdiff
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2000-03-31 18:17:01 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2000-03-31 18:17:01 +0000
commit962f4269153ba954e137aab94ff4eaad4a7b02ae (patch)
treed3c1dddc04092bbe0893548ad0af2dff315786dd /src/mesa/drivers
parentaa51bb083bf392962a6828cdd6a8c804aa19bd42 (diff)
fixed mistake in glXGetConfig(GLX_VISUAL_CAVEAT_EXT)
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/x11/fakeglx.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mesa/drivers/x11/fakeglx.c b/src/mesa/drivers/x11/fakeglx.c
index 2996dd7971..8ffdd34458 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