Mesa (master): d3d1x: fix warning

Luca Barbieri lb at kemper.freedesktop.org
Wed Sep 22 13:56:14 UTC 2010


Module: Mesa
Branch: master
Commit: d83b7a69a0aeece9d7ba68c1b161656988009bfa
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d83b7a69a0aeece9d7ba68c1b161656988009bfa

Author: Luca Barbieri <luca at luca-barbieri.com>
Date:   Wed Sep 22 13:25:45 2010 +0200

d3d1x: fix warning

---

 .../state_trackers/d3d1x/gd3d1x/tpf_to_tgsi.cpp    |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/state_trackers/d3d1x/gd3d1x/tpf_to_tgsi.cpp b/src/gallium/state_trackers/d3d1x/gd3d1x/tpf_to_tgsi.cpp
index 676c939..4d7c296 100644
--- a/src/gallium/state_trackers/d3d1x/gd3d1x/tpf_to_tgsi.cpp
+++ b/src/gallium/state_trackers/d3d1x/gd3d1x/tpf_to_tgsi.cpp
@@ -441,7 +441,7 @@ struct tpf_to_tgsi_converter
 			case TPF_OPCODE_LD_MS:
 			{
 				unsigned texslot = _texslot(false);
-				unsigned dim;
+				unsigned dim = 0;
 				switch(targets[texslot].first)
 				{
 				case TGSI_TEXTURE_1D:




More information about the mesa-commit mailing list