summaryrefslogtreecommitdiff
path: root/source/slang/dxc-support.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/dxc-support.cpp')
-rw-r--r--source/slang/dxc-support.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/dxc-support.cpp b/source/slang/dxc-support.cpp
index 056fefe2d..68b46f1b9 100644
--- a/source/slang/dxc-support.cpp
+++ b/source/slang/dxc-support.cpp
@@ -133,7 +133,7 @@ namespace Slang
IDxcOperationResult* dxcResult = nullptr;
if (FAILED(dxcCompiler->Compile(dxcSourceBlob,
L"slang",
- wideEntryPointName.begin(),
+ profile.GetStage() == Stage::Unknown ? L"" : wideEntryPointName.begin(),
wideProfileName.begin(),
args,
argCount,