From b5a0f59c0f167c2d99b585371e76c80c5342990c Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Fri, 5 Apr 2013 13:43:52 -0700 Subject: [PATCH] i965: Fix compiler warnings since the introduction of texture multisample. Reviewed-by: Matt Turner --- src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp index 856fbb4d6bd..2fb848293f6 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp +++ b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp @@ -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: -- 2.30.2