From 962f4269153ba954e137aab94ff4eaad4a7b02ae Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 31 Mar 2000 18:17:01 +0000 Subject: [PATCH] fixed mistake in glXGetConfig(GLX_VISUAL_CAVEAT_EXT) --- src/mesa/drivers/x11/fakeglx.c | 8 ++++++-- 1 file 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 -- 2.30.2