diff options
author | Vinson Lee <[email protected]> | 2013-02-11 22:35:01 -0800 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2013-02-13 23:10:48 -0800 |
commit | 0d5ce524abdf7e655ed20f7f82a89c9ba4de5e09 (patch) | |
tree | bc006cd46bbff24f5f07f4c1f6256c370bc9d6bf /src | |
parent | b8906adb66294e629aba58668a1851ac3fdaa391 (diff) |
glsl: Initialize ir_texture member variable.
Fixes uninitialized pointer field defect reported by Coverity.
Signed-off-by: Vinson Lee <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/glsl/ir.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/glsl/ir.h b/src/glsl/ir.h index efd80dad894..1e09988e5fe 100644 --- a/src/glsl/ir.h +++ b/src/glsl/ir.h @@ -1448,8 +1448,8 @@ enum ir_texture_opcode { class ir_texture : public ir_rvalue { public: ir_texture(enum ir_texture_opcode op) - : op(op), coordinate(NULL), projector(NULL), shadow_comparitor(NULL), - offset(NULL) + : op(op), sampler(NULL), coordinate(NULL), projector(NULL), + shadow_comparitor(NULL), offset(NULL) { this->ir_type = ir_type_texture; } |