[Mesa-dev] [PATCH 1/3] mesa: fix glPushAttrib(0) / glPopAttrib() error

Brian Paul brianp at vmware.com
Tue May 26 12:11:33 PDT 2015

On 05/26/2015 02:05 PM, Emil Velikov wrote:
> On 25/05/15 14:41, Brian Paul wrote:
>> If the glPushAttrib() mask value was zero we didn't actually push
>> anything onto the attribute stack.  A subsequent glPopAttrib() call
>> would generate a GL_STACK_UNDERFLOW error.  Now push a dummy attribute
>> in that case to prevent the error.
>> Mesa now matches nvidia's behavior.
> If you feel that these cause significant headaches for game/app
> developers feel free to throw in the stable tag on the series.

I only found this during the course of debugging an app that used 
glPush/PopAttrib and I was trimming down the attrib mask.  I hit 0 at 
one point and discovered the error/bug then.  I'm not aware of any apps 
that hit this.



More information about the mesa-dev mailing list