TIntermTyped *condition = node->getCondition();\r
TIntermTyped *expression = node->getExpression();\r
TIntermNode *body = node->getBody();\r
+ Constant True(true);\r
\r
if(node->getType() == ELoopDoWhile)\r
{\r
Temporary iterate(this);\r
- Constant True(true);\r
emit(sw::Shader::OPCODE_MOV, &iterate, &True);\r
\r
emit(sw::Shader::OPCODE_WHILE, 0, &iterate); // FIXME: Implement real do-while\r
{\r
condition->traverse(this);\r
}\r
+ else\r
+ {\r
+ condition = &True;\r
+ }\r
\r
emit(sw::Shader::OPCODE_WHILE, 0, condition);\r
\r