Is there any way to do this?
I’m doing this right now:
glPushClientAttrib(GL_CLIENT_VERTEX_ARRAY_BIT);
glEnableClientState(GL_VERTEX_ARRAY);
glEnableClientState(GL_NORMAL_ARRAY);
glEnableClientState(GL_COLOR_ARRAY);
glEnableClientState(GL_TEXTURE_COORD_ARRAY);
glEnableVertexAttribArrayARB(6);
… render using ARBvp …
glPopClientAttrib();
and the 6th attrib array is not getting turned off by the pop-client attrib. I was kind of expecting GL_CLIENT_VERTEX_ARRAY_BIT would handle the attrib arrays also.
There doesn’t seem to be any new tokens in the ARB_vertex_program specification for pushing/popping the generic attrib array enablement state.
(I’m using a Radeon 9800, btw.)
edit - grammar
[This message has been edited by Stephen_H (edited 03-01-2004).]