summaryrefslogtreecommitdiff
path: root/tools/gfx
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gfx')
-rw-r--r--tools/gfx/slang-context.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/gfx/slang-context.h b/tools/gfx/slang-context.h
index 39a457cf6..0a878e0f5 100644
--- a/tools/gfx/slang-context.h
+++ b/tools/gfx/slang-context.h
@@ -41,8 +41,10 @@ namespace gfx
targetDesc.floatingPointMode = desc.floatingPointMode;
targetDesc.lineDirectiveMode = desc.lineDirectiveMode;
targetDesc.flags = desc.targetFlags;
- slangSessionDesc.targetCount = 1;
+
slangSessionDesc.targets = &targetDesc;
+ slangSessionDesc.targetCount = 1;
+
SLANG_RETURN_ON_FAIL(globalSession->createSession(slangSessionDesc, session.writeRef()));
return SLANG_OK;
}