diff options
Diffstat (limited to 'source/slang/slang-check-modifier.cpp')
| -rw-r--r-- | source/slang/slang-check-modifier.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/slang-check-modifier.cpp b/source/slang/slang-check-modifier.cpp index 2627ab8e8..9117eb6ec 100644 --- a/source/slang/slang-check-modifier.cpp +++ b/source/slang/slang-check-modifier.cpp @@ -1162,7 +1162,7 @@ namespace Slang if (auto decl = as<Decl>(syntaxNode)) { auto moduleDecl = getModuleDecl(decl); - bool isGLSLInput = getLinkage()->getAllowGLSLInput(); + bool isGLSLInput = getOptionSet().getBoolOption(CompilerOptionName::AllowGLSL); if (!isGLSLInput && moduleDecl && moduleDecl->findModifier<GLSLModuleModifier>()) isGLSLInput = true; if (!isModifierAllowedOnDecl(isGLSLInput, m->astNodeType, decl)) |
