mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 21:40:08 +01:00
ir_variable: Add some missing initialization to the constructor.
Thanks to valgrind for noticing this problem.
This commit is contained in:
parent
a9d58ad6c9
commit
7fd7104fbb
1 changed files with 3 additions and 1 deletions
4
ir.cpp
4
ir.cpp
|
|
@ -727,11 +727,13 @@ ir_swizzle::variable_referenced()
|
|||
|
||||
ir_variable::ir_variable(const struct glsl_type *type, const char *name)
|
||||
: max_array_access(0), read_only(false), centroid(false), invariant(false),
|
||||
mode(ir_var_auto), interpolation(ir_var_smooth)
|
||||
shader_in(false), shader_out(false),
|
||||
mode(ir_var_auto), interpolation(ir_var_smooth), array_lvalue(false)
|
||||
{
|
||||
this->type = type;
|
||||
this->name = name;
|
||||
this->location = -1;
|
||||
this->warn_extension = NULL;
|
||||
this->constant_value = NULL;
|
||||
|
||||
if (type && type->base_type == GLSL_TYPE_SAMPLER)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue