Use GLuint/GLint intead of GLstencil for stencil state.