[Mesa-dev] [PATCH 1/5] i965: Fix compiler warnings since the introduction of texture multisample.
Eric Anholt
eric at anholt.net
Wed Apr 10 11:54:38 PDT 2013
---
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 ed8e65d..ead7632 100644
--- a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
+++ b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
@@ -2098,7 +2098,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:
--
1.7.10.4
More information about the mesa-dev
mailing list