зеркало из https://github.com/AvaloniaUI/angle.git
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
This commit is contained in:
Родитель
51d0dc2a6b
Коммит
4f3ce80711
|
@ -1532,7 +1532,7 @@ void OutputHLSL::visitConstantUnion(TIntermConstantUnion *node)
|
|||
|
||||
const TType &type = node->getType();
|
||||
|
||||
if (type.isField())
|
||||
if (type.isField() && type.getQualifier() != EvqConst)
|
||||
{
|
||||
out << type.getFieldName();
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче