Fixed multiple issues with struct declaration and construction.
Review URL: http://codereview.appspot.com/1076041

git-svn-id: https://angleproject.googlecode.com/svn/trunk@220 736b8ea6-26fd-11df-bfd4-992fa37f6226
diff --git a/src/compiler/TranslatorGLSL.cpp b/src/compiler/TranslatorGLSL.cpp
index 061543d..6149d72 100644
--- a/src/compiler/TranslatorGLSL.cpp
+++ b/src/compiler/TranslatorGLSL.cpp
@@ -14,10 +14,8 @@
 }
 
 bool TranslatorGLSL::compile(TIntermNode* root) {
-    TParseContext& parseContext = *GetGlobalParseContext();
-    TOutputGLSL outputGLSL(parseContext);
-    outputGLSL.header();
-    parseContext.treeRoot->traverse(&outputGLSL);
+    TOutputGLSL outputGLSL(infoSink.obj);
+    root->traverse(&outputGLSL);
 
     return true;
 }