From b5b8d22c4ee921dff99b898a5907023b20670a27 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Sat, 27 Nov 2004 20:07:08 +0000 Subject: Change the dispatch offsets for the VertexAttrib*NV functions so they don't alias with the corresponding ARB functions. GL_ARB_vertex_shader (and OpenGL 2.0's) VertexAttrib functions don't alias with conventional vertex attributes, as GL_NV_vertex_program does. So, the ARB and NV version of VertexAttrib need to be distinct. --- src/mesa/array_cache/ac_import.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mesa/array_cache') diff --git a/src/mesa/array_cache/ac_import.c b/src/mesa/array_cache/ac_import.c index c33a4e3fe1..0c66084f91 100644 --- a/src/mesa/array_cache/ac_import.c +++ b/src/mesa/array_cache/ac_import.c @@ -461,7 +461,7 @@ import_attrib( GLcontext *ctx, GLuint index, GLenum type, GLuint stride ) struct gl_client_array *to = &ac->Cache.Attrib[index]; (void) type; (void) stride; - ASSERT(index < VERT_ATTRIB_MAX); + ASSERT(index < MAX_VERTEX_PROGRAM_ATTRIBS); /* Limited choices at this stage: */ -- cgit v1.2.3