Przeglądaj źródła

ir_variable: Initialize all attribute bits to reasonable defaults

This prevents variables from randomly having their 'invariant' or
'read_only' bits set, for example.
tags/mesa-7.9-rc1
Ian Romanick 15 lat temu
rodzic
commit
654c057257
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2
    1
      ir.cpp

+ 2
- 1
ir.cpp Wyświetl plik

@@ -95,7 +95,8 @@ ir_dereference::ir_dereference(ir_instruction *var)


ir_variable::ir_variable(const struct glsl_type *type, const char *name)
: ir_instruction(ir_op_var_decl)
: ir_instruction(ir_op_var_decl), read_only(false), centroid(false),
invariant(false), mode(ir_var_auto), interpolation(ir_var_smooth)
{
this->type = type;
this->name = name;

Ładowanie…
Anuluj
Zapisz