allow GLX_SAMPLES_ARB==0 (bug 16073)
authorBrian Paul <brian.paul@tungstengraphics.com>
Tue, 27 May 2008 15:49:18 +0000 (09:49 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Tue, 27 May 2008 15:49:18 +0000 (09:49 -0600)
src/mesa/drivers/x11/fakeglx.c

index 7a170b4d3d10b7e0eb3fddd5b9e03bc4397e10ff..e5cd8f0b8054166f3bffeaccfedb1ca8c41088df 100644 (file)
@@ -1183,11 +1183,12 @@ choose_visual( Display *dpy, int screen, const int *list, GLboolean fbConfig )
           * GLX_ARB_multisample
           */
          case GLX_SAMPLE_BUFFERS_ARB:
-            /* ms not supported */
-            return NULL;
          case GLX_SAMPLES_ARB:
-            /* ms not supported */
-            return NULL;
+           parselist++;
+           if (*parselist++ != 0)
+              /* ms not supported */
+              return NULL;
+           break;
 
          /*
           * FBConfig attribs.