mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
mesa: Assert variable coming from get_variable() in get_current_attrib
Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
a7d8607d9e
commit
22bf0f3eb4
1 changed files with 1 additions and 0 deletions
|
|
@ -543,6 +543,7 @@ get_current_attrib(texenv_fragment_program *p, GLuint attrib)
|
|||
ir_rvalue *val;
|
||||
|
||||
current = p->shader->symbols->get_variable("gl_CurrentAttribFragMESA");
|
||||
assert(current);
|
||||
current->data.max_array_access = MAX2(current->data.max_array_access, attrib);
|
||||
val = new(p->mem_ctx) ir_dereference_variable(current);
|
||||
ir_rvalue *index = new(p->mem_ctx) ir_constant(attrib);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue