Memory: Don't use pool memory to store the entry point name in the intermediate representation.
This might address issue #221, which I couldn't reproduce.
This commit is contained in:
parent
78a6b78810
commit
7e3e486344
4 changed files with 5 additions and 5 deletions
|
|
@ -986,7 +986,7 @@ TIntermAggregate* TParseContext::handleFunctionDefinition(const TSourceLoc& loc,
|
|||
//
|
||||
// Raise error message if main function takes any parameters or returns anything other than void
|
||||
//
|
||||
if (function.getName() == intermediate.getEntryPoint()) {
|
||||
if (function.getName() == intermediate.getEntryPoint().c_str()) {
|
||||
if (function.getParamCount() > 0)
|
||||
error(loc, "function cannot take any parameter(s)", function.getName().c_str(), "");
|
||||
if (function.getType().getBasicType() != EbtVoid)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue