From d87dd1dcfd0f13a6be1a2096d654f4d62044ad48 Mon Sep 17 00:00:00 2001 From: Yong He Date: Tue, 2 May 2023 20:31:01 -0700 Subject: gfx: fix vulkan validation errors. (#2861) * Fix VK validation errors when using vk1.2 features. * Fix vulkan validation errors. * Fix. --------- Co-authored-by: Yong He --- source/slang/slang-check-decl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source') diff --git a/source/slang/slang-check-decl.cpp b/source/slang/slang-check-decl.cpp index 99939afde..57b97d18b 100644 --- a/source/slang/slang-check-decl.cpp +++ b/source/slang/slang-check-decl.cpp @@ -2847,7 +2847,8 @@ namespace Slang // a temporary diagnostic sink. // DiagnosticSink tempSink(getSourceManager(), nullptr); - SemanticsVisitor subVisitor(withSink(&tempSink)); + ExprLocalScope localScope; + SemanticsVisitor subVisitor(withSink(&tempSink).withExprLocalScope(&localScope)); // With our temporary diagnostic sink soaking up any messages // from overload resolution, we can now try to resolve -- cgit v1.2.3