From 7dc5857173e3fb5884736e5de91f6b4b1cef3ef3 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Tue, 18 Jan 2022 12:09:31 -0500 Subject: Fix for issue #2069 (#2082) * #include an absolute path didn't work - because paths were taken to always be relative. * Fix unused initialized variable warning. Fixed typo found in issue 2069 causing g++11 error of access through this. --- source/slang/slang-emit-c-like.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/slang/slang-emit-c-like.cpp') diff --git a/source/slang/slang-emit-c-like.cpp b/source/slang/slang-emit-c-like.cpp index 74c225feb..06d34c260 100644 --- a/source/slang/slang-emit-c-like.cpp +++ b/source/slang/slang-emit-c-like.cpp @@ -2734,7 +2734,7 @@ void CLikeSourceEmitter::emitParamTypeImpl(IRType* type, String const& name) // Note: There is no HLSL/GLSL equivalent for by-reference parameters, // so we don't actually expect to encounter these in user code. m_writer->emit("inout "); - type = inOutType->getValueType(); + type = refType->getValueType(); } emitType(type, name); -- cgit v1.2.3