mesa/src
Peter Clifton ee88727df8 meta: Mask Stencil.Clear against stencilMax in _mesa_meta_Clear
This fixes incorrect behaviour when the stencil clear value exceeds
the size of the stencil buffer, for example, when set with:

glClearStencil (~1); /* Set a bit pattern of 111...11111110 */
glClear (GL_STENCIL_BUFFER_BIT);

The clear value needs to be masked by the value 2^m - 1, where m is the
number of bits in the stencil buffer. Previously, we passed the value
masked with 0x7fffffff to _mesa_StencilFuncSeparate which then clamps,
NOT masks the value to the range 0 to 2^m - 1.

The result would be clearing the stencil buffer to 0xff, rather than 0xfe.

Signed-off-by: Peter Clifton <pcjc2@cam.ac.uk>
Signed-off-by: Brian Paul <brianp@vmware.com>
2010-11-24 12:14:54 -07:00
..
driclient mesa: Purge macros NEED_EVENTS and NEED_REPLIES 2010-07-01 13:07:07 -06:00
egl egl_dri2: Fix one context, multiple surfaces. 2010-11-24 14:06:30 +08:00
gallium gallium/targets/xorg-vmwgfx: Xv fixes 2010-11-24 15:23:10 +01:00
glsl glsl: Add a helper function for determining if an rvalue could be a saturate. 2010-11-19 19:09:18 -08:00
glu mesa: fix mesa version string construction 2010-10-19 08:59:27 -06:00
glut scons: Revamp how to specify targets to build. 2010-11-01 13:30:22 +00:00
glw Makefiles: Don't complain if depend file to be included doesn't exist. 2010-07-21 13:19:33 -07:00
glx mesa: upgrade to glext.h version 66 2010-11-17 20:04:45 -07:00
mapi mesa: hook up GL 3.x entrypoints 2010-11-21 09:20:44 -07:00
mesa meta: Mask Stencil.Clear against stencilMax in _mesa_meta_Clear 2010-11-24 12:14:54 -07:00
talloc scons: Fix inverted logic. 2010-08-26 18:29:04 +01:00
Makefile
SConscript scons: Revamp how to specify targets to build. 2010-11-01 13:30:22 +00:00