summaryrefslogtreecommitdiff
path: root/source/slang/slang-emit-glsl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-emit-glsl.cpp')
-rw-r--r--source/slang/slang-emit-glsl.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/slang/slang-emit-glsl.cpp b/source/slang/slang-emit-glsl.cpp
index 5b29fb8fa..b5eec456a 100644
--- a/source/slang/slang-emit-glsl.cpp
+++ b/source/slang/slang-emit-glsl.cpp
@@ -12,6 +12,13 @@
namespace Slang {
+GLSLSourceEmitter::GLSLSourceEmitter(const Desc& desc) :
+ Super(desc)
+{
+ m_glslExtensionTracker = dynamicCast<GLSLExtensionTracker>(desc.extensionTracker);
+ SLANG_ASSERT(m_glslExtensionTracker);
+}
+
SlangResult GLSLSourceEmitter::init()
{
SLANG_RETURN_ON_FAIL(Super::init());