Skip to content

Commit

Permalink
Non-functional: Fix commit 98f164e.
Browse files Browse the repository at this point in the history
Fix previous commit to not use tabs and otherwise match local coding
conventions better.
  • Loading branch information
johnkslang committed Aug 23, 2016
1 parent 98f164e commit 219b025
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
6 changes: 3 additions & 3 deletions StandAlone/StandAlone.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -415,21 +415,21 @@ struct ShaderCompUnit {
char** text; // memory owned/managed externally
const char* fileNameList[1];

//Need to have a special constructors to adjust the fileNameList, since back end needs a list of ptrs
// Need to have a special constructors to adjust the fileNameList, since back end needs a list of ptrs
ShaderCompUnit(EShLanguage istage, std::string &ifileName, char** itext)
{
stage = istage;
fileName = ifileName;
text = itext;
fileNameList[0] = fileName.c_str();
fileNameList[0] = fileName.c_str();
}

ShaderCompUnit(const ShaderCompUnit &rhs)
{
stage = rhs.stage;
fileName = rhs.fileName;
text = rhs.text;
fileNameList[0] = fileName.c_str();
fileNameList[0] = fileName.c_str();
}

};
Expand Down
4 changes: 2 additions & 2 deletions glslang/Include/revision.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
// For the version, it uses the latest git tag followed by the number of commits.
// For the date, it uses the current date (when then script is run).

#define GLSLANG_REVISION "SPIRV99.1401"
#define GLSLANG_DATE "11-Aug-2016"
#define GLSLANG_REVISION "SPIRV99.1426"
#define GLSLANG_DATE "23-Aug-2016"
6 changes: 4 additions & 2 deletions hlsl/hlslParseHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,11 @@ bool HlslParseContext::parseShaderStrings(TPpContext& ppContext, TInputScanner&
HlslGrammar grammar(scanContext, *this);
if (!grammar.parse())
{
//Print out a nicer error message that should be formated such that if you click on the message it will take you right to the line through most UIs
// Print a message formated such that if you click on the message it will take you right to
// the line through most UIs.
const glslang::TSourceLoc& sourceLoc = input.getSourceLoc();
printf("\n%s(%i): error at column %i, HLSL translation failed.\n", sourceLoc.name, sourceLoc.line, sourceLoc.column);
printf("\n%s(%i): error at column %i, HLSL translation failed.\n", sourceLoc.name, sourceLoc.line,
sourceLoc.column);
}
return numErrors == 0;
}
Expand Down

0 comments on commit 219b025

Please sign in to comment.