mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
mesa: add asserts in load_texunit_bumpmap
In load_texunit_bumpmap tc_array is asserted so lets assert rot_mat_0 and rot_mat_1 also which are coming from same path. Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
c02f6c26d3
commit
28b552bf6b
1 changed files with 2 additions and 0 deletions
|
|
@ -1096,7 +1096,9 @@ load_texunit_bumpmap( texenv_fragment_program *p, GLuint unit )
|
|||
ir_variable *rot_mat_0, *rot_mat_1;
|
||||
|
||||
rot_mat_0 = p->shader->symbols->get_variable("gl_BumpRotMatrix0MESA");
|
||||
assert(rot_mat_0);
|
||||
rot_mat_1 = p->shader->symbols->get_variable("gl_BumpRotMatrix1MESA");
|
||||
assert(rot_mat_1);
|
||||
|
||||
ir_variable *tc_array = p->shader->symbols->get_variable("gl_TexCoord");
|
||||
assert(tc_array);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue