glx: Move vertex array protocol state into the indirect backend
[mesa.git] / src / glx / glxcurrent.c
index 9c5d2af895639a380b536379352c1bb0a3a2fe5b..a388df7a78dc9017f47448daa191ed1cb72a7bb8 100644 (file)
@@ -245,18 +245,6 @@ MakeContextCurrent(Display * dpy, GLXDrawable draw,
 
    __glXUnlock();
 
-   /* The indirect vertex array state must to be initialised after we
-    * have setup the context, as it needs to query server attributes.
-    */
-   if (gc && !gc->isDirect) {
-      __GLXattribute *state = gc->client_state_private;
-      if (state && state->array_state == NULL) {
-         glGetString(GL_EXTENSIONS);
-         glGetString(GL_VERSION);
-         __glXInitVertexArrayState(gc);
-      }
-   }
-
    return GL_TRUE;
 }