diff options
Diffstat (limited to 'source/slang/slang-parser.cpp')
| -rw-r--r-- | source/slang/slang-parser.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/slang/slang-parser.cpp b/source/slang/slang-parser.cpp index f0c9e175f..f5312e645 100644 --- a/source/slang/slang-parser.cpp +++ b/source/slang/slang-parser.cpp @@ -7630,6 +7630,8 @@ namespace Slang { numThreadsAttrib = parser->astBuilder->create<GLSLLayoutLocalSizeAttribute>(); numThreadsAttrib->args.setCount(3); + for (auto& i : numThreadsAttrib->args) + i = nullptr; // Just mark the loc and name from the first in the list numThreadsAttrib->keywordName = getName(parser, "numthreads"); |
