Made size of MaxIds dynamic

The size of the MaxIds array is equal to the value returned by
GL_MAX_VERTEX_ATTRIBS