summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/slang/slang-options.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/slang/slang-options.cpp b/source/slang/slang-options.cpp
index c3f2ad055..b7f7268d1 100644
--- a/source/slang/slang-options.cpp
+++ b/source/slang/slang-options.cpp
@@ -282,7 +282,8 @@ void initCommandOptions(CommandOptions& options)
for (auto name : names)
{
- if (name.startsWith("__") || name.startsWith("spirv_1_") || name.startsWith("_"))
+ if (name.startsWith("__") || name.startsWith("spirv_1_") || name.startsWith("_") ||
+ name == "Invalid")
{
continue;
}