mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 08:30:10 +01:00
glsl: Initialize variable in ir_swizzle::constant_expression_value.
Complete initialize data passed to ir_constant constructor. Fixes piglit glsl-mat-from-int-ctor-02 valgrind unintialized variable error with softpipe and llvmpipe.
This commit is contained in:
parent
b43611b79c
commit
2d0ef6bfee
1 changed files with 1 additions and 1 deletions
|
|
@ -653,7 +653,7 @@ ir_swizzle::constant_expression_value()
|
|||
ir_constant *v = this->val->constant_expression_value();
|
||||
|
||||
if (v != NULL) {
|
||||
ir_constant_data data;
|
||||
ir_constant_data data = { { 0 } };
|
||||
|
||||
const unsigned swiz_idx[4] = {
|
||||
this->mask.x, this->mask.y, this->mask.z, this->mask.w
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue