diff options
author | Chad Versace <[email protected]> | 2013-01-15 17:29:21 -0800 |
---|---|---|
committer | Chad Versace <[email protected]> | 2013-01-24 21:24:10 -0800 |
commit | fafcbf52b7a45494e11488eb37d1e0b036ac8e4b (patch) | |
tree | b4aaa822b38d77a3622a778b711dee03120fa625 /src/glsl/ir_builder.h | |
parent | 542c7a30224211de8d7df5025a5308559f33197b (diff) |
glsl/ir_factory: Initialize members to NULL in constructor
This eliminates unexpected behavior due to unitialized values.
Reviewed-by: Ian Romanick <[email protected]>
Signed-off-by: Chad Versace <[email protected]>
Diffstat (limited to 'src/glsl/ir_builder.h')
-rw-r--r-- | src/glsl/ir_builder.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/glsl/ir_builder.h b/src/glsl/ir_builder.h index 067858df45b..278294fe963 100644 --- a/src/glsl/ir_builder.h +++ b/src/glsl/ir_builder.h @@ -73,6 +73,13 @@ public: class ir_factory { public: + ir_factory() + : instructions(NULL), + mem_ctx(NULL) + { + return; + } + void emit(ir_instruction *ir); ir_variable *make_temp(const glsl_type *type, const char *name); |