# glDisableClientState in OpenGL

I'm just wondering why we need to call glDisableClientState(GL_VERTEX_ARRAY) after the drawing of a vertex array. Is it possible to just leave it there for the next drawing? Is there any side effect of doing this?

• Have you tried it? – MichaelHouse Apr 14 '13 at 1:32

To answer your question: you can call glEnableClientState once and leave the state enabled as far as your drawing code requires the same state. For example, if you don't want to render normals arrays you don't want it to be enabled, so you call glDisableClientState.