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
diff --git a/src/compiler/OutputHLSL.cpp b/src/compiler/OutputHLSL.cpp
index afe111e..b6eb826 100644
--- a/src/compiler/OutputHLSL.cpp
+++ b/src/compiler/OutputHLSL.cpp
@@ -1532,7 +1532,7 @@
const TType &type = node->getType();
- if (type.isField())
+ if (type.isField() && type.getQualifier() != EvqConst)
{
out << type.getFieldName();
}