mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 01:08:03 +02:00
glsl: Initialize data in ast_function_expression::hir.
Completely initialize data that is passed to ir_constant constructor. Fixes piglit glsl-orangebook-ch06-bump valgrind uninitialized variable error on softpipe and llvmpipe.
This commit is contained in:
parent
30a0865528
commit
0c93e69b25
1 changed files with 1 additions and 1 deletions
|
|
@ -1193,7 +1193,7 @@ ast_function_expression::hir(exec_list *instructions,
|
|||
* causes the matrix to be filled with 0 and the diagonal to be
|
||||
* filled with the value.
|
||||
*/
|
||||
ir_constant_data data;
|
||||
ir_constant_data data = { { 0 } };
|
||||
ir_constant *const initializer =
|
||||
(ir_constant *) actual_parameters.head;
|
||||
if (constructor_type->is_matrix())
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue