diff options
author | Juha-Pekka Heikkila <[email protected]> | 2013-12-19 05:27:00 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2013-12-19 08:26:17 -0700 |
commit | 22bf0f3eb4668044042cdf326ccee29fa44f850a (patch) | |
tree | 7cb73966ea4bdea05287c6a26df50235307f51bd | |
parent | a7d8607d9ea4bfba31bd4eac00ab9a021db538e4 (diff) |
mesa: Assert variable coming from get_variable() in get_current_attrib
Signed-off-by: Juha-Pekka Heikkila <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
-rw-r--r-- | src/mesa/main/ff_fragment_shader.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/main/ff_fragment_shader.cpp b/src/mesa/main/ff_fragment_shader.cpp index 6e91697a1b1..ba6258d8905 100644 --- a/src/mesa/main/ff_fragment_shader.cpp +++ b/src/mesa/main/ff_fragment_shader.cpp @@ -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); |