summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2006-06-14 03:29:08 +0000
committerBrian Paul <[email protected]>2006-06-14 03:29:08 +0000
commit3c18d4960728661e4059a015e7deb7c676c5c7b1 (patch)
tree4c19cb484a64000aac6d504a770b6f6bc2ac104c /src/mesa
parentee061060826df059f0ddb904a2160ed610423579 (diff)
new assertion
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/tnl/t_array_import.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/tnl/t_array_import.c b/src/mesa/tnl/t_array_import.c
index b7be88f4305..dcb5290ef20 100644
--- a/src/mesa/tnl/t_array_import.c
+++ b/src/mesa/tnl/t_array_import.c
@@ -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] */