Re: [Mesa3d-dev] Segfault on glClear of non-existent stencil buffer caused by bd1ce874728c06d08a1f9881f51edbdd2f1c9db0

2010-03-23 Thread Brian Paul
Luca Barbieri wrote: Apparently _mesa_Clear should not set BUFFER_BIT_STENCIL if the visual lacks a stencil buffer. So it seems the visual is somehow incorrect, or a visual with a stencil buffer is being selected but the stencil renderbuffer is not actually set. At line 167 of

Re: [Mesa3d-dev] Segfault on glClear of non-existent stencil buffer caused by bd1ce874728c06d08a1f9881f51edbdd2f1c9db0

2010-03-23 Thread Luca Barbieri
We have a visual haveStencilBuffer == 1 but stencilBits == 0 (and no stencil renderbuffer), which I suppose shouldn't be happening. visualid and fbconfigid are also 0. Here is the full structure: $1 = {next = 0x0, rgbMode = 1 '\001', floatMode = 0 '\000', colorIndexMode = 0 '\000',

Re: [Mesa3d-dev] Segfault on glClear of non-existent stencil buffer caused by bd1ce874728c06d08a1f9881f51edbdd2f1c9db0

2010-03-23 Thread Luca Barbieri
The problem seems to be in st_manager.c: if (visual-depth_stencil_format != PIPE_FORMAT_NONE) { mode-haveDepthBuffer = GL_TRUE; mode-haveStencilBuffer = GL_TRUE; mode-depthBits = util_format_get_component_bits(visual-depth_stencil_format,

Re: [Mesa3d-dev] Segfault on glClear of non-existent stencil buffer caused by bd1ce874728c06d08a1f9881f51edbdd2f1c9db0

2010-03-23 Thread Chia-I Wu
On Wed, Mar 24, 2010 at 12:56 AM, Brian Paul bri...@vmware.com wrote: The problem seems to be in st_manager.c:   if (visual-depth_stencil_format != PIPE_FORMAT_NONE) {      mode-haveDepthBuffer = GL_TRUE;      mode-haveStencilBuffer = GL_TRUE;      mode-depthBits =