summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2010-07-20 15:58:46 -0700
committerCarl Worth <cworth@cworth.org>2010-07-20 15:58:46 -0700
commitf6d32ecc8a78ccf848b02301491f82b97e7106ee (patch)
treece3808557b2ddada643bd97a569a0f31c306a37d /src
parenta52292c69c968b96c995eaf16117ba6adfdd5ecc (diff)
ir_to_mesa_visitor: Initialize lod_info struct to all 0.
To quiet the compiler from warning about possible use before initialization.
Diffstat (limited to 'src')
-rw-r--r--src/mesa/shader/ir_to_mesa.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/shader/ir_to_mesa.cpp b/src/mesa/shader/ir_to_mesa.cpp
index 5803960d44..3104ea43ad 100644
--- a/src/mesa/shader/ir_to_mesa.cpp
+++ b/src/mesa/shader/ir_to_mesa.cpp
@@ -1563,7 +1563,7 @@ ir_to_mesa_visitor::visit(ir_call *ir)
void
ir_to_mesa_visitor::visit(ir_texture *ir)
{
- ir_to_mesa_src_reg result_src, coord, lod_info, projector;
+ ir_to_mesa_src_reg result_src, coord, lod_info = { 0 }, projector;
ir_to_mesa_dst_reg result_dst, coord_dst;
ir_to_mesa_instruction *inst = NULL;
prog_opcode opcode = OPCODE_NOP;