From: Brian Paul Date: Thu, 11 Dec 2008 01:00:36 +0000 (-0700) Subject: gallium: restore default_depth_bits() call in xlib winsys X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=99b862cd77fb088d0b2e62c6c15ecef82ec4fb80;p=mesa.git gallium: restore default_depth_bits() call in xlib winsys This was accidentally disabled in a long-ago commit. --- diff --git a/src/gallium/winsys/xlib/fakeglx.c b/src/gallium/winsys/xlib/fakeglx.c index 2c0075e9345..a56e63572a7 100644 --- a/src/gallium/winsys/xlib/fakeglx.c +++ b/src/gallium/winsys/xlib/fakeglx.c @@ -419,7 +419,7 @@ static XMesaVisual create_glx_visual( Display *dpy, XVisualInfo *visinfo ) { int vislevel; - GLint zBits = 24; /*default_depth_bits();*/ + GLint zBits = default_depth_bits(); GLint accBits = default_accum_bits(); GLboolean alphaFlag = default_alpha_bits() > 0; @@ -1289,7 +1289,7 @@ choose_visual( Display *dpy, int screen, const int *list, GLboolean fbConfig ) double_flag = GL_TRUE; if (vis->depth > 8) rgb_flag = GL_TRUE; - depth_size = 24; /*default_depth_bits();*/ + depth_size = default_depth_bits(); stencil_size = STENCIL_BITS; /* XXX accum??? */ }