minor tweak to GLX_VISUAL_CAVEAT_EXT query
authorBrian Paul <brian.paul@tungstengraphics.com>
Fri, 31 Mar 2000 01:12:40 +0000 (01:12 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Fri, 31 Mar 2000 01:12:40 +0000 (01:12 +0000)
src/mesa/drivers/x11/fakeglx.c

index 08e01c76675f036d976fe067185df3bee8d5e875..e10a85883a3313ba17ca8dbf60db3901f329e7d8 100644 (file)
@@ -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