mesa: s/MAX_VERTEX_PROGRAM_ATTRIBS/MAX_NV_VERTEX_PROGRAM_INPUTS
authorBrian Paul <brianp@vmware.com>
Thu, 21 May 2009 23:03:21 +0000 (17:03 -0600)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 22 Jun 2009 22:15:19 +0000 (15:15 -0700)
(cherry picked from commit d2a74d76c96957cf0294dcf40d29526621ada95e)

src/mesa/main/varray.c

index 0882e8f37a237dd05033efc062857450674c7480..8f6621ee45fec9722fea211837ac1cf424b47ed2 100644 (file)
@@ -538,7 +538,7 @@ _mesa_VertexAttribPointerNV(GLuint index, GLint size, GLenum type,
    GET_CURRENT_CONTEXT(ctx);
    ASSERT_OUTSIDE_BEGIN_END(ctx);
 
-   if (index >= MAX_VERTEX_PROGRAM_ATTRIBS) {
+   if (index >= MAX_NV_VERTEX_PROGRAM_INPUTS) {
       _mesa_error(ctx, GL_INVALID_VALUE, "glVertexAttribPointerNV(index)");
       return;
    }