mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-01 02:30:24 +01:00
mesa: fix bug in previous changes to _slang_resolve_attributes()
This commit is contained in:
parent
e53296c928
commit
0d20c88f62
1 changed files with 3 additions and 1 deletions
|
|
@ -275,7 +275,7 @@ _slang_resolve_attributes(struct gl_shader_program *shProg,
|
|||
const char *name = origProg->Attributes->Parameters[k].Name;
|
||||
const GLint size = origProg->Attributes->Parameters[k].Size;
|
||||
const GLenum type =origProg->Attributes->Parameters[k].DataType;
|
||||
GLint index, attr;
|
||||
GLint index;
|
||||
|
||||
/* See if there's a user-defined attribute binding for
|
||||
* this name.
|
||||
|
|
@ -313,6 +313,8 @@ _slang_resolve_attributes(struct gl_shader_program *shProg,
|
|||
size, type, attr);
|
||||
}
|
||||
|
||||
assert(attr >= 0);
|
||||
|
||||
/* update the instruction's src reg */
|
||||
inst->SrcReg[j].Index = VERT_ATTRIB_GENERIC0 + attr;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue