My GLEW seems to be missing a define for this.
It's in auto/core/GL_VERSION_1_1. Yet I can't find it's definition
anywhere on the opengl.org spec pages -- e.g. in gl.tm or gl.spec, nor
is it in the draft gl3.h header.
Yet it comes with my nvidia driver. Further, if I copy its defined
value and use it in glPushAttrib, it does what I want when rendering
through Mesa softpipe. Presumably it would work on my actual GPU as
well, though I haven't tested.
Also of interesting note, the define given by my nvidia driver seems
off by a few bits. few == 12 in this case:
tf@... glew grep ALL_ATTRIB_BITS auto/core/*
auto/core/GL_VERSION_1_1: GL_ALL_ATTRIB_BITS 0x000fffff
auto/core/GL_VERSION_1_1: GL_CLIENT_ALL_ATTRIB_BITS 0xffffffff
tf@... glew grep ALL_ATTRIB_BITS /usr/include/GL/gl.h
#define GL_ALL_ATTRIB_BITS 0xFFFFFFFF
#define GL_CLIENT_ALL_ATTRIB_BITS 0xFFFFFFFF
tf@... glew grep ALL_ATTRIB_BITS ~/dev/mesa/include/GL/*
/home/tfogal/dev/mesa/include/GL/glew.h:#define GL_ALL_ATTRIB_BITS 0x000fffff
My GLEW is admittedly pretty hacked up at this point, so it could just
be something I've screwed up. After looking into it though, I'm not
even sure if it *should* be there.
Could I get confirmation:
. That it's not in GLEW 'cause *I* broke something
. That the define does exist and I'm not just working too late