summaryrefslogtreecommitdiff
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2000-03-31 01:12:40 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2000-03-31 01:12:40 +0000
commitfc68be6b111473a0bf8f991468f973bb9dd275f4 (patch)
tree1b389d884ca720eb101ea5b8598604f48c453bd2 /src/mesa/drivers
parentb2e460018375f699198073a6167e0ee96ba1d267 (diff)
minor tweak to GLX_VISUAL_CAVEAT_EXT query
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/x11/fakeglx.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/drivers/x11/fakeglx.c b/src/mesa/drivers/x11/fakeglx.c
index 08e01c7667..e10a85883a 100644
--- a/src/mesa/drivers/x11/fakeglx.c
+++ b/src/mesa/drivers/x11/fakeglx.c
@@ -1,4 +1,4 @@
-/* $Id: fakeglx.c,v 1.27 2000/03/31 01:07:14 brianp Exp $ */
+/* $Id: fakeglx.c,v 1.28 2000/03/31 01:12:40 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -1506,7 +1506,8 @@ Fake_glXGetConfig( Display *dpy, XVisualInfo *visinfo,
* GLX_EXT_visual_info extension
*/
case GLX_VISUAL_CAVEAT_EXT:
- return glxvis->VisualCaveat;
+ /* test for zero, just in case */
+ return (glxvis->VisualCaveat > 0) ? glxvis->VisualCaveat : GLX_NONE_EXT;
/*
* Extensions