diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/tnl/t_array_import.c | 2 |
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 b7be88f430..dcb5290ef2 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] */ |