st/glx: remove STENCIL_BITS, DEFAULT_SOFTWARE_DEPTH_BITS
Remove some Mesa/swrast stuff.
This commit is contained in:
@@ -277,7 +277,7 @@ default_depth_bits(void)
|
|||||||
if (zEnv)
|
if (zEnv)
|
||||||
zBits = atoi(zEnv);
|
zBits = atoi(zEnv);
|
||||||
else
|
else
|
||||||
zBits = DEFAULT_SOFTWARE_DEPTH_BITS;
|
zBits = 24;
|
||||||
return zBits;
|
return zBits;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -326,7 +326,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 */
|
||||||
@@ -977,7 +977,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 ||
|
if (accumRedSize > 0 ||
|
||||||
accumGreenSize > 0 ||
|
accumGreenSize > 0 ||
|
||||||
|
|||||||
Reference in New Issue
Block a user