new assertion
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 14 Jun 2006 03:29:08 +0000 (03:29 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 14 Jun 2006 03:29:08 +0000 (03:29 +0000)
src/mesa/tnl/t_array_import.c

index b7be88f4305fbe5b0df76137d60f7e0763b0f93c..dcb5290ef20803ed43374f0261a61c909ed446ae 100644 (file)
@@ -226,6 +226,8 @@ static void _tnl_import_attrib( GLcontext *ctx,
    GLboolean is_writable = 0;
    const GLubyte *data;
 
+   ASSERT(index < MAX_VERTEX_PROGRAM_ATTRIBS);
+
    tmp = _ac_import_attrib(ctx, index, GL_FLOAT,
                            stride ? 4 * sizeof(GLfloat) : 0,
                            4,  /* want GLfloat[4] */