i965: Fix compiler warnings since the introduction of texture multisample.
authorEric Anholt <eric@anholt.net>
Fri, 5 Apr 2013 20:43:52 +0000 (13:43 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 12 Apr 2013 23:32:11 +0000 (16:32 -0700)
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp

index 856fbb4d6bdf88d256430931bec504681990a132..2fb848293f65edcbfaaea89a97b988dc0b7376db 100644 (file)
@@ -2120,7 +2120,7 @@ vec4_visitor::visit(ir_texture *ir)
       shadow_comparitor = this->result;
    }
 
-   const glsl_type *lod_type, *sample_index_type;
+   const glsl_type *lod_type = NULL, *sample_index_type = NULL;
    src_reg lod, dPdx, dPdy, sample_index;
    switch (ir->op) {
    case ir_tex: