From 389be08822ba554327b5948266f54acf8a312fe7 Mon Sep 17 00:00:00 2001 From: Yong He Date: Fri, 5 Jun 2020 12:57:57 -0700 Subject: Fix FindTypeByName reflection API not finding stdlib types. --- source/slang/slang-check-shader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source') diff --git a/source/slang/slang-check-shader.cpp b/source/slang/slang-check-shader.cpp index 80860074d..69dbf133d 100644 --- a/source/slang/slang-check-shader.cpp +++ b/source/slang/slang-check-shader.cpp @@ -1290,7 +1290,7 @@ namespace Slang // it defines keywords like `true` and `false`). // RefPtr scope = new Scope(); - scope->parent = getLinkage()->getSessionImpl()->baseLanguageScope; + scope->parent = getLinkage()->getSessionImpl()->slangLanguageScope; // // Next, the scope needs to include all of the // modules in the program as peers, as if they -- cgit v1.2.3