d3d1x: fix warning
authorLuca Barbieri <luca@luca-barbieri.com>
Wed, 22 Sep 2010 11:25:45 +0000 (13:25 +0200)
committerLuca Barbieri <luca@luca-barbieri.com>
Wed, 22 Sep 2010 11:25:45 +0000 (13:25 +0200)
src/gallium/state_trackers/d3d1x/gd3d1x/tpf_to_tgsi.cpp

index 676c939aa0000369e8d3132eeaf8e1185cd664f5..4d7c296bb6216605c47d51de187cad10d2954b22 100644 (file)
@@ -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: