summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTilman Sauerbeck <tilman@freedesktop.org>2006-05-29 16:24:28 +0000
committerTilman Sauerbeck <tilman@freedesktop.org>2006-05-29 16:24:28 +0000
commitb20cdf1d2829eb8d9638d6a23a26e4a4c11c4e90 (patch)
tree4fdaa63220737ad4bcf6fa03d5d61b896350c7f6
parent919f6a070c871a8e60053306145f0971c69d699b (diff)
don't do the check for >= MAX_VERTEX_PROGRAM_ATTRIBS twice, it's already done in parse_generic_attrib_num()
-rw-r--r--src/mesa/shader/arbprogparse.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/mesa/shader/arbprogparse.c b/src/mesa/shader/arbprogparse.c
index cdf1b3dc1d..66ea96b4d3 100644
--- a/src/mesa/shader/arbprogparse.c
+++ b/src/mesa/shader/arbprogparse.c
@@ -1538,12 +1538,6 @@ parse_attrib_binding(GLcontext * ctx, GLubyte ** inst,
GLuint attrib;
if (!parse_generic_attrib_num(ctx, inst, Program, &attrib)) {
*is_generic = 1;
- if (attrib >= MAX_VERTEX_PROGRAM_ATTRIBS) {
- const char *msg = "Invalid generic vertex attribute reference";
- _mesa_set_program_error (ctx, Program->Position, msg);
- _mesa_error (ctx, GL_INVALID_OPERATION, msg);
- return 1;
- }
/* Add VERT_ATTRIB_GENERIC0 here because ARB_vertex_program's
* attributes do not alias the conventional vertex
* attributes.