dEQP-GLES2.functional.negative_api.state.get_vertex_attrib_pointerv
Fail -> Pass
Based on Intel's OpenGL validation for goldfish opengl,
introduced in nyc-dev
Change-Id: If67192368935f21de20c0f531036db027b867b37
{
GL2Encoder *ctx = (GL2Encoder *)self;
if (ctx->m_state == NULL) return;
-
+ GLint maxIndex;
+ ctx->glGetIntegerv(self, GL_MAX_VERTEX_ATTRIBS, &maxIndex);
+ SET_ERROR_IF(!(index < maxIndex), GL_INVALID_VALUE);
+ SET_ERROR_IF(pname != GL_VERTEX_ATTRIB_ARRAY_POINTER, GL_INVALID_ENUM);
(void)pname;
const GLClientState::VertexAttribState *va_state = ctx->m_state->getState(index);