Skip to content

Commit

Permalink
Fixed SL_EXIT_MSG again
Browse files Browse the repository at this point in the history
No we see shader compile errors again.
  • Loading branch information
hsm4 committed Nov 21, 2023
1 parent 72c4cdf commit 373ea04
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion modules/sl/source/SL.h
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ SL_sizeOfVector(const T& vector)
//-----------------------------------------------------------------------------
// Some debugging and error handling macros
#define SL_LOG(...) Utils::log("SLProject", __VA_ARGS__)
#define SL_EXIT_MSG(message) Utils::log("SLProject Error", (message))
#define SL_EXIT_MSG(message) Utils::exitMsg("SLProject", (message), __LINE__, __FILE__)
#define SL_WARN_MSG(message) Utils::warnMsg("SLProject", (message), __LINE__, __FILE__)
//-----------------------------------------------------------------------------
#endif
1 change: 1 addition & 0 deletions modules/sl/source/gl/SLGLShader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ SLbool SLGLShader::createAndCompile(SLVLight* lights)
SLint lineNum = 1;
for (string& line : lines)
SL_LOG("%4d: %s", lineNum++, line.c_str());
SL_LOG("\n");
return false;
}

Expand Down
6 changes: 3 additions & 3 deletions modules/utils/source/Utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,10 @@ vector<string> getStringLines(const string& multiLineString)
{
std::string line;
std::getline(stream, line);
if (!stream.good())
break;
line = Utils::trimString(line, "\r");
res.push_back(line);
if (!stream.good())
break;
}
return res;
}
Expand Down Expand Up @@ -1391,7 +1391,7 @@ std::string ComputerInfos::get()
// model = model;
# endif

#elif defined(ANDROID) //................................................
#elif defined(ANDROID) //................................................

os = "Android";

Expand Down

0 comments on commit 373ea04

Please sign in to comment.