Output propagated struct constants as literals

TRAC #11809 Signed-off-by: Andrew Lewycky Signed-off-by: Daniel Koch Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@218 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent 51d0dc2a
...@@ -1532,7 +1532,7 @@ void OutputHLSL::visitConstantUnion(TIntermConstantUnion *node) ...@@ -1532,7 +1532,7 @@ void OutputHLSL::visitConstantUnion(TIntermConstantUnion *node)
const TType &type = node->getType(); const TType &type = node->getType();
if (type.isField()) if (type.isField() && type.getQualifier() != EvqConst)
{ {
out << type.getFieldName(); out << type.getFieldName();
} }
......
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