mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-23 08:38:08 +02:00
move allocation of shProg->Attributes earlier in function
This commit is contained in:
parent
c9855a60f4
commit
fe16b9f663
1 changed files with 3 additions and 3 deletions
|
|
@ -290,6 +290,9 @@ _slang_resolve_attributes(struct gl_shader_program *shProg,
|
|||
|
||||
assert(prog->Target == GL_VERTEX_PROGRAM_ARB);
|
||||
|
||||
if (!shProg->Attributes)
|
||||
shProg->Attributes = _mesa_new_parameter_list();
|
||||
|
||||
/* Build a bitmask indicating which attribute indexes have been
|
||||
* explicitly bound by the user with glBindAttributeLocation().
|
||||
*/
|
||||
|
|
@ -299,9 +302,6 @@ _slang_resolve_attributes(struct gl_shader_program *shProg,
|
|||
usedAttributes |= attr;
|
||||
}
|
||||
|
||||
if (!shProg->Attributes)
|
||||
shProg->Attributes = _mesa_new_parameter_list();
|
||||
|
||||
/*
|
||||
* Scan program for generic attribute references
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue