Initialize all shader variables
TRAC #11869
Signed-off-by: Shannon Woods
Signed-off-by: Daniel Koch

Author:    Nicolas Capens

git-svn-id: https://angleproject.googlecode.com/svn/trunk@155 736b8ea6-26fd-11df-bfd4-992fa37f6226
diff --git a/src/compiler/OutputHLSL.cpp b/src/compiler/OutputHLSL.cpp
index 2c883fb..30168f9 100644
--- a/src/compiler/OutputHLSL.cpp
+++ b/src/compiler/OutputHLSL.cpp
@@ -988,8 +988,8 @@
                         if (symbol)
                         {
                             symbol->traverse(this);
-
                             out << arrayString(symbol->getType());
+                            out << " = " + initializer(variable->getType());
                         }
                         else
                         {
@@ -1809,11 +1809,11 @@
     {
         string += typeString(type) + "(";
 
-        for (int component = 0; component < type.getNominalSize(); component++)
+        for (int component = 0; component < type.getInstanceSize(); component++)
         {
             string += "0";
 
-            if (component < type.getNominalSize() - 1)
+            if (component < type.getInstanceSize() - 1)
             {
                 string += ", ";
             }