Correct use of anonymous / nameless struct

TRAC #12108 Signed-off-by: Daniel Koch Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@221 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent a499cfc5
...@@ -2008,7 +2008,7 @@ TString OutputHLSL::typeString(const TType &type) ...@@ -2008,7 +2008,7 @@ TString OutputHLSL::typeString(const TType &type)
{ {
return decorate(type.getTypeName()); return decorate(type.getTypeName());
} }
else // Anonymous structure, define in place else // Nameless structure, define in place
{ {
const TTypeList &fields = *type.getStruct(); const TTypeList &fields = *type.getStruct();
...@@ -2136,7 +2136,7 @@ void OutputHLSL::addConstructor(const TType &type, const TString &name, const TI ...@@ -2136,7 +2136,7 @@ void OutputHLSL::addConstructor(const TType &type, const TString &name, const TI
{ {
if (name == "") if (name == "")
{ {
return; // Anonymous structures don't have constructors return; // Nameless structures don't have constructors
} }
Constructor constructor; Constructor constructor;
......
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