From: Brian Paul Date: Fri, 31 Mar 2000 01:12:40 +0000 (+0000) Subject: minor tweak to GLX_VISUAL_CAVEAT_EXT query X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fc68be6b111473a0bf8f991468f973bb9dd275f4;p=mesa.git minor tweak to GLX_VISUAL_CAVEAT_EXT query --- diff --git a/src/mesa/drivers/x11/fakeglx.c b/src/mesa/drivers/x11/fakeglx.c index 08e01c76675..e10a85883a3 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