projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
919f6a0
)
don't do the check for >= MAX_VERTEX_PROGRAM_ATTRIBS twice, it's already done in...
author
Tilman Sauerbeck
<tilman@freedesktop.org>
Mon, 29 May 2006 16:24:28 +0000
(16:24 +0000)
committer
Tilman Sauerbeck
<tilman@freedesktop.org>
Mon, 29 May 2006 16:24:28 +0000
(16:24 +0000)
src/mesa/shader/arbprogparse.c
patch
|
blob
|
history
diff --git
a/src/mesa/shader/arbprogparse.c
b/src/mesa/shader/arbprogparse.c
index cdf1b3dc1d2c06f7dc69223a3299a6871bb10425..66ea96b4d3802504a6ae20cf4711ebf51212224a 100644
(file)
--- 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.