diff options
Diffstat (limited to 'tools/slang-test/test-context.cpp')
| -rw-r--r-- | tools/slang-test/test-context.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/slang-test/test-context.cpp b/tools/slang-test/test-context.cpp index bb9870dad..685ee1f2e 100644 --- a/tools/slang-test/test-context.cpp +++ b/tools/slang-test/test-context.cpp @@ -85,7 +85,10 @@ SlangResult TestContext::locateFileCheck() Result TestContext::init(const char* inExePath) { - m_session = spCreateSession(nullptr); + SlangGlobalSessionDesc desc = {}; + desc.enableGLSL = true; + slang_createGlobalSession2(&desc, &m_session); + if (!m_session) { return SLANG_FAIL; |
