When specify Stencil operation as GL_ZERO or GL_REPLACE, then draw bitmap, the stencil buffer will not be modified. This regression is caused by commit: b47c9f8c915ae4ca8c7fa5ee3b6b64f17c38b569.
Created attachment 11395 [details] test case
The bug seems not introduced by commit b47c9f8c915ae4ca8c7fa5ee3b6b64f17c38b569. With i915 driver and soft rendering, the case also failed. Maybe this bug is also related to Mesa core. So I don't know how long the bug has been introducted. In Ubuntu7.04 distribution, the case passed with i915 driver and soft rendering.
Try adding GLUT_STENCIL to your glutInitDisplayMode() call.
After adding GLUT_STENCIL, the case is correct with soft rendering. With i915 driver and i965 driver, both of the results are incorrect: expected at (0): 0, actual: 0.000000 expected at (1): 0, actual: 1.000000 expected at (2): 2, actual: 2.000000 expected at (3): 2, actual: 3.000000 expected at (4): 0, actual: 4.000000 expected at (5): 0, actual: 5.000000 expected at (6): 2, actual: 6.000000 expected at (7): 2, actual: 7.000000 ........
fixed in mesa git e21d2c6ef300c7661f49c50b4c68b4f205795f4a
Mass version move, cvs -> git
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.