From: Brian P. <br...@vm...> - 2010-03-23 16:24:55
|
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 src/mesa/main/clear.c we check if the user specifies GL_STENCIL_BUFFER_BIT but the drawing surface has no stencil bits. So, st_clear() should not be getting BUFFER_BIT_STENCIL if there's no stencil buffer. Perhaps you could debug that a bit further. -Brian |