diff options
author | Kenneth Graunke <[email protected]> | 2013-09-01 23:18:37 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2013-09-09 11:52:21 -0700 |
commit | 33faaf0b4ac6391793eea8771090ae6def4882da (patch) | |
tree | 17243c887a68a3c500f00d49a623963d9e51f928 /src | |
parent | 1b3a482a9642a6850f1717966f1c6630fcbbe3bc (diff) |
glsl: Initialize lod_info in the ir_texture constructor.
This isn't strictly necessary, since creators of ir_texture objects
should set LOD when relevant. However, it's nice to have a NULL pointer
in case they forget.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Reviewed-by: Paul Berry <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/glsl/ir.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/ir.h b/src/glsl/ir.h index c673aac416c..de41858764c 100644 --- a/src/glsl/ir.h +++ b/src/glsl/ir.h @@ -1568,6 +1568,7 @@ public: shadow_comparitor(NULL), offset(NULL) { this->ir_type = ir_type_texture; + memset(&lod_info, 0, sizeof(lod_info)); } virtual ir_texture *clone(void *mem_ctx, struct hash_table *) const; |