Fix single statement loops.

TRAC #18301 Signed-off-by: Daniel Koch Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@765 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent aa00b593
#define MAJOR_VERSION 0 #define MAJOR_VERSION 0
#define MINOR_VERSION 0 #define MINOR_VERSION 0
#define BUILD_VERSION 0 #define BUILD_VERSION 0
#define BUILD_REVISION 764 #define BUILD_REVISION 765
#define STRINGIFY(x) #x #define STRINGIFY(x) #x
#define MACRO_STRINGIFY(x) STRINGIFY(x) #define MACRO_STRINGIFY(x) STRINGIFY(x)
......
...@@ -1615,7 +1615,7 @@ bool OutputHLSL::visitLoop(Visit visit, TIntermLoop *node) ...@@ -1615,7 +1615,7 @@ bool OutputHLSL::visitLoop(Visit visit, TIntermLoop *node)
} }
outputLineDirective(node->getLine()); outputLineDirective(node->getLine());
out << "}\n"; out << ";}\n";
if (node->getType() == ELoopDoWhile) if (node->getType() == ELoopDoWhile)
{ {
...@@ -1849,7 +1849,7 @@ bool OutputHLSL::handleExcessiveLoop(TIntermLoop *node) ...@@ -1849,7 +1849,7 @@ bool OutputHLSL::handleExcessiveLoop(TIntermLoop *node)
} }
outputLineDirective(node->getLine()); outputLineDirective(node->getLine());
out << "}\n"; out << ";}\n";
initial += 255 * increment; initial += 255 * increment;
iterations -= 255; iterations -= 255;
......
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