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

2015-05-15 Thread Brian Paul
On 05/15/2015 11:31 AM, Brian Paul wrote: If the glPushAttrib() mask value was zero we didn't actually push anything onto the attribute stack. A subsequent glPopAttrib() error I'll s/error/call/ there. would generate GL_STACK_UNDERFLOW. Now push a dummy attribute in that case to prevent the

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

2015-05-15 Thread Brian Paul
If the glPushAttrib() mask value was zero we didn't actually push anything onto the attribute stack. A subsequent glPopAttrib() error would generate GL_STACK_UNDERFLOW. Now push a dummy attribute in that case to prevent the error. Mesa now matches nvidia's behavior. --- src/mesa/main/attrib.c |