glGetVertexAttribivARB(0, GL_VERTEX_ATTRIB_ARRAY_ENABLED_ARB, ...) generates GL_INVALID_ENUM with indirect rendering
Submitted by Bruce Merry
Assigned to mes..@..op.org
The summary describes the error; I get the same error with other attribute numbers and also GL_VERTEX_ATTRIB_ARRAY_NORMALIZED.
Tracing some code, it appears that indirect_table.c in xorg-server (generated by glX_server_table.py, according to the comment) may be the culprit. It maps GLX opcode 1303 to glGetVertexAttribivNV. The NV and ARB variants use the same GLX opcode, but the NV variant does not support the _ENABLED or _NORMALIZED queries.
I've written a trivial program to illustrate the bug. I'll attach it as soon as I've had an opportunity to restart X in order to test it.