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
diff --git a/src/compiler/OutputHLSL.cpp b/src/compiler/OutputHLSL.cpp
index 9b47aac..629a4ea 100644
--- a/src/compiler/OutputHLSL.cpp
+++ b/src/compiler/OutputHLSL.cpp
@@ -1615,7 +1615,7 @@
}
outputLineDirective(node->getLine());
- out << "}\n";
+ out << ";}\n";
if (node->getType() == ELoopDoWhile)
{
@@ -1849,7 +1849,7 @@
}
outputLineDirective(node->getLine());
- out << "}\n";
+ out << ";}\n";
initial += 255 * increment;
iterations -= 255;