Commit 95447df0 by alokp@chromium.org

GLSL backend was assuming that a for-loop will always have a condition. But…

GLSL backend was assuming that a for-loop will always have a condition. But according to GLSL ES 1.0, the condition is optional. BUG=50 Review URL: http://codereview.appspot.com/2489042 git-svn-id: https://angleproject.googlecode.com/svn/trunk@451 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent ac23189b
...@@ -619,8 +619,8 @@ bool TOutputGLSL::visitLoop(Visit visit, TIntermLoop* node) ...@@ -619,8 +619,8 @@ bool TOutputGLSL::visitLoop(Visit visit, TIntermLoop* node)
node->getInit()->traverse(this); node->getInit()->traverse(this);
out << "; "; out << "; ";
ASSERT(node->getTest() != NULL); if (node->getTest())
node->getTest()->traverse(this); node->getTest()->traverse(this);
out << "; "; out << "; ";
if (node->getTerminal()) if (node->getTerminal())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment