Vertex attributes that are modified by glDrawElements have an unspecified value after glDrawElements returns. Attributes that are not modified remain well defined. The glDrawElements subroutine is available only if the GL version is 1.1 or greater. The glDrawElements subroutine is included in display lists. Because the array pointers and enables are client side state, their values affect display lists when the lists are created, not when the lists are executed.
Parameters mode Specifies what kind of primitives to render.