- if(i==get_component_type(VERTEX3))
- glDisableClientState(GL_VERTEX_ARRAY);
- else if(i==get_component_type(NORMAL3))
- glDisableClientState(GL_NORMAL_ARRAY);
- else if(i==get_component_type(COLOR4_FLOAT))
- glDisableClientState(GL_COLOR_ARRAY);
- else if(i>=get_component_type(TEXCOORD1) && i<=get_component_type(TEXCOORD1)+3)
- {
- unsigned j = i-get_component_type(TEXCOORD1);
- if(j>0 || active_tex)
- glClientActiveTexture(GL_TEXTURE0+j);
- glDisableClientState(GL_TEXTURE_COORD_ARRAY);
- active_tex = j;
- }
- else if(i<get_component_type(ATTRIB1))
- glDisableVertexAttribArray(i);