Skip to content

Commit

Permalink
revert typeName from getCompleteString() (breaks tests), add to funct…
Browse files Browse the repository at this point in the history
…ion dump instead
  • Loading branch information
pixeljetstream committed Apr 16, 2019
1 parent 4b1dfc5 commit aa4e527
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
5 changes: 0 additions & 5 deletions glslang/Include/Types.h
Original file line number Diff line number Diff line change
Expand Up @@ -2019,11 +2019,6 @@ class TType {

// Add struct/block members
if (isStruct() && structure) {
if (typeName) {
appendStr(" ");
appendStr(typeName->c_str());
appendStr(" ");
}
appendStr("{");
for (size_t i = 0; i < structure->size(); ++i) {
if (! (*structure)[i].type->hiddenMember()) {
Expand Down
3 changes: 2 additions & 1 deletion glslang/MachineIndependent/SymbolTable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,8 @@ void TFunction::dump(TInfoSink &infoSink, bool complete) const
for (int i = 0; i < numParams; i++) {
const TParameter &param = parameters[i];
infoSink.debug << param.type->getCompleteString() << " "
<< (param.name ? param.name->c_str() : "") << (i < numParams - 1 ? "," : "");
<< (param.type->isStruct() ? "of " + param.type->getTypeName() + " " : "")
<< (param.name ? *param.name : "") << (i < numParams - 1 ? "," : "");
}

infoSink.debug << ")";
Expand Down

0 comments on commit aa4e527

Please sign in to comment.