diff options
Diffstat (limited to 'source/slang/slang-emit-c-like.cpp')
| -rw-r--r-- | source/slang/slang-emit-c-like.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/slang/slang-emit-c-like.cpp b/source/slang/slang-emit-c-like.cpp index c7b5b602b..26af7b9f4 100644 --- a/source/slang/slang-emit-c-like.cpp +++ b/source/slang/slang-emit-c-like.cpp @@ -2459,13 +2459,13 @@ String CLikeSourceEmitter::getFuncName(IRFunc* func) // name for an entry-point function, but other // targets should try to use the original name. // - // TODO: always use `main`, and have any code - // that wraps this know to use `main` instead - // of the original entry-point name... + // TODO: always use the original name, and + // use the appropriate options for glslang to + // make it support a non-`main` name. // if (getSourceStyle() != SourceStyle::GLSL) { - return getText(entryPointLayout->entryPoint->getName()); + return getText(entryPointLayout->getFuncDecl()->getName()); } // |
