mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
fix size bug in _mesa_add_attribute()
This commit is contained in:
parent
29bff4e12d
commit
ee11842bfc
1 changed files with 2 additions and 0 deletions
|
|
@ -297,6 +297,8 @@ _mesa_add_attribute(struct gl_program_parameter_list *paramList,
|
|||
/* add */
|
||||
gl_state_index state[STATE_LENGTH];
|
||||
state[0] = attrib;
|
||||
if (size < 0)
|
||||
size = 4;
|
||||
i = _mesa_add_parameter(paramList, PROGRAM_INPUT, name,
|
||||
size, NULL, state);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue