mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-09 17:00:13 +01:00
glGetAttribLocation always returned 1 (bug 11774)
This commit is contained in:
parent
e66757c8ba
commit
59b1233e70
1 changed files with 3 additions and 1 deletions
|
|
@ -329,8 +329,10 @@ _slang_resolve_attributes(struct gl_shader_program *shProg,
|
|||
* glVertex/position.
|
||||
*/
|
||||
for (attr = 1; attr < MAX_VERTEX_ATTRIBS; attr++) {
|
||||
if (((1 << attr) & usedAttributes) == 0)
|
||||
if (((1 << attr) & usedAttributes) == 0) {
|
||||
usedAttributes |= (1 << attr);
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (attr == MAX_VERTEX_ATTRIBS) {
|
||||
/* too many! XXX record error log */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue