xlib: remove STENCIL_BITS
This commit is contained in:
parent
5f60a00743
commit
074637bf99
|
@ -428,7 +428,7 @@ create_glx_visual( Display *dpy, XVisualInfo *visinfo )
|
||||||
GL_TRUE, /* double */
|
GL_TRUE, /* double */
|
||||||
GL_FALSE, /* stereo */
|
GL_FALSE, /* stereo */
|
||||||
zBits,
|
zBits,
|
||||||
STENCIL_BITS,
|
8, /* stencil bits */
|
||||||
accBits, /* r */
|
accBits, /* r */
|
||||||
accBits, /* g */
|
accBits, /* g */
|
||||||
accBits, /* b */
|
accBits, /* b */
|
||||||
|
@ -1174,7 +1174,7 @@ choose_visual( Display *dpy, int screen, const int *list, GLboolean fbConfig )
|
||||||
if (vis->depth <= 8)
|
if (vis->depth <= 8)
|
||||||
return NULL;
|
return NULL;
|
||||||
depth_size = default_depth_bits();
|
depth_size = default_depth_bits();
|
||||||
stencil_size = STENCIL_BITS;
|
stencil_size = 8;
|
||||||
/* XXX accum??? */
|
/* 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. */
|
/* we only support one size of stencil and accum buffers. */
|
||||||
if (stencil_size > 0)
|
if (stencil_size > 0)
|
||||||
stencil_size = STENCIL_BITS;
|
stencil_size = 8;
|
||||||
if (accumRedSize > 0 || accumGreenSize > 0 || accumBlueSize > 0 ||
|
if (accumRedSize > 0 || accumGreenSize > 0 || accumBlueSize > 0 ||
|
||||||
accumAlphaSize > 0) {
|
accumAlphaSize > 0) {
|
||||||
accumRedSize =
|
accumRedSize =
|
||||||
|
|
Loading…
Reference in New Issue