public override void DisableClientState(uint array) { switch (array) { case GLES11.COLOR_ARRAY: gl.DisableVertexAttribArray(ARRAY_COLOR); CheckError("DisableClientState colorArr"); break; case GLES11.VERTEX_ARRAY: gl.DisableVertexAttribArray(ARRAY_POSITION); CheckError("DisableClientState vertexArrr"); break; case GLES11.TEXTURE_COORD_ARRAY: switch (_clientActiveTexture) { case 0: gl.DisableVertexAttribArray(ARRAY_TEXCOORD_0); CheckError("DisableClientState texCoord0"); break; case 1: gl.DisableVertexAttribArray(ARRAY_TEXCOORD_1); CheckError("DisableClientState texCoord1"); break; default: throw new Exception("RuntimeException:"); } break; default: Log("unsupported / unrecogized client state"); break; } }