According to the <u>OpenGL-2.1-Spec</u> the prototype for glStencilFuncSeparate should be (chapter 4.1.5, page 205):
glStencilFuncSeparate(GLenum face, GLenum func, GLint, GLuint);
gl.psec however defines something like:
glStencilFuncSeparate(StencilFunc frontFunc, StencilFunc backFunc, GLint, GLuint);
which is an alias to glStencilFuncSeparateATI() which should be wrong.
Who is responsible for cleaning up the gl.spec file from here: http://opengl.org/registry/api/gl.spec ?