mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-07 19:30:12 +01:00
don't do the check for >= MAX_VERTEX_PROGRAM_ATTRIBS twice, it's already done in parse_generic_attrib_num()
This commit is contained in:
parent
919f6a070c
commit
b20cdf1d28
1 changed files with 0 additions and 6 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue