commit | a499cfc5ff7bf68367a9fd1903b6a556d27794f4 | [log] [tgz] |
---|---|---|
author | alokp@chromium.org <alokp@chromium.org@736b8ea6-26fd-11df-bfd4-992fa37f6226> | Mon May 03 23:14:49 2010 +0000 |
committer | alokp@chromium.org <alokp@chromium.org@736b8ea6-26fd-11df-bfd4-992fa37f6226> | Mon May 03 23:14:49 2010 +0000 |
tree | 0ec1bc9bf1f519f6a0c77693506581e5b91de425 | |
parent | 2986a8cbcb9b0731e2ea6fad0f93f5c4be9be144 [diff] [blame] |
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; }