summaryrefslogtreecommitdiff
path: root/src/glx/x11/glxext.c
diff options
context:
space:
mode:
authorIan Romanick <idr@us.ibm.com>2005-03-17 20:13:09 +0000
committerIan Romanick <idr@us.ibm.com>2005-03-17 20:13:09 +0000
commitb81efaaa1ac8676a1092e4354079ffcbe7960af2 (patch)
tree8e12c55de867d77479deac40736916c672c90ba2 /src/glx/x11/glxext.c
parent00e760c971ccd6ffab7895a157b5256d54aba24e (diff)
Minor vertex array support tweaks. Most of these are in preparation for the
(eventual) addition of support for ARB_vertex_buffer_object. Move all the private vertex array data structures out of indirect_vertex_array.c and into indirect_va_private.h. Rename array_state_vector::enabled_array_count to array_state_vector::enabled_client_array_count. Make sure that both the GL extension string and the server GL version are available when __glXInitVertexState is called. Make sure that array_state::normalized is set correctly in the array's gl*Pointer function.
Diffstat (limited to 'src/glx/x11/glxext.c')
-rw-r--r--src/glx/x11/glxext.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glx/x11/glxext.c b/src/glx/x11/glxext.c
index a827e448bc..2c2217ebc5 100644
--- a/src/glx/x11/glxext.c
+++ b/src/glx/x11/glxext.c
@@ -1768,6 +1768,7 @@ USED static Bool MakeContextCurrent(Display *dpy, GLXDrawable draw,
gc->currentContextTag = reply.contextTag;
if ( state->array_state == NULL ) {
(void) glGetString( GL_EXTENSIONS );
+ (void) glGetString( GL_VERSION );
__glXInitVertexArrayState(gc);
}
}