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)
committerBrian Paul <brianp@vmware.com>
Thu, 21 May 2009 23:03:21 +0000 (17:03 -0600)
src/mesa/main/varray.c

index 6bf3c485c73653cc84eb174d3fa78c10bb69ad6d..0982dc7977ff9b5f1303a6904446277e4ea94f80 100644 (file)
@@ -532,7 +532,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;
    }