Don't crash on null conditional block

TRAC #11871 Signed-off-by: Shannon Woods Signed-off-by: Daniel Koch Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@156 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent 7127f207
...@@ -1242,7 +1242,10 @@ bool OutputHLSL::visitSelection(Visit visit, TIntermSelection *node) ...@@ -1242,7 +1242,10 @@ bool OutputHLSL::visitSelection(Visit visit, TIntermSelection *node)
out << ")\n" out << ")\n"
"{\n"; "{\n";
node->getTrueBlock()->traverse(this); if (node->getTrueBlock())
{
node->getTrueBlock()->traverse(this);
}
out << ";}\n"; out << ";}\n";
......
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