diff options
Diffstat (limited to 'source/slangc/main.cpp')
| -rw-r--r-- | source/slangc/main.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/slangc/main.cpp b/source/slangc/main.cpp index 2090b0412..718de6968 100644 --- a/source/slangc/main.cpp +++ b/source/slangc/main.cpp @@ -100,7 +100,9 @@ SLANG_TEST_TOOL_API SlangResult innerMain( else if (!session) { // Just create the global session in the regular way if there isn't one set - SLANG_RETURN_ON_FAIL(slang_createGlobalSession(SLANG_API_VERSION, session.writeRef())); + SlangGlobalSessionDesc desc = {}; + desc.enableGLSL = true; + SLANG_RETURN_ON_FAIL(slang_createGlobalSession2(&desc, session.writeRef())); } if (!shouldEmbedPrelude(argv, argc)) |
