xlib: remove STENCIL_BITS
authorBrian Paul <brianp@vmware.com>
Tue, 21 Feb 2012 15:01:05 +0000 (08:01 -0700)
committerBrian Paul <brianp@vmware.com>
Fri, 24 Feb 2012 15:03:13 +0000 (08:03 -0700)
src/mesa/drivers/x11/fakeglx.c

index 2ff9e7ea6b46b89aaeaecbe12b937780d19a2c8e..fffcae489824763ac02e8477104025b4cc5f50d7 100644 (file)
@@ -428,7 +428,7 @@ create_glx_visual( Display *dpy, XVisualInfo *visinfo )
                              GL_TRUE,   /* double */
                              GL_FALSE,  /* stereo */
                              zBits,
-                             STENCIL_BITS,
+                             8,       /* stencil bits */
                              accBits, /* r */
                              accBits, /* g */
                              accBits, /* b */
@@ -1174,7 +1174,7 @@ choose_visual( Display *dpy, int screen, const int *list, GLboolean fbConfig )
          if (vis->depth <= 8)
            return NULL;
          depth_size = default_depth_bits();
-         stencil_size = STENCIL_BITS;
+         stencil_size = 8;
          /* XXX accum??? */
       }
    }
@@ -1215,7 +1215,7 @@ choose_visual( Display *dpy, int screen, const int *list, GLboolean fbConfig )
 
       /* we only support one size of stencil and accum buffers. */
       if (stencil_size > 0)
-         stencil_size = STENCIL_BITS;
+         stencil_size = 8;
       if (accumRedSize > 0 || accumGreenSize > 0 || accumBlueSize > 0 ||
           accumAlphaSize > 0) {
          accumRedSize =