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.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/slang/dxc-support.cpp b/source/slang/dxc-support.cpp
index b18a25e43..056fefe2d 100644
--- a/source/slang/dxc-support.cpp
+++ b/source/slang/dxc-support.cpp
@@ -125,7 +125,8 @@ namespace Slang
String entryPointName = getText(entryPoint->name);
OSString wideEntryPointName = entryPointName.ToWString();
- String profileName = GetHLSLProfileName(entryPoint->profile);
+ auto profile = getEffectiveProfile(entryPoint, targetReq);
+ String profileName = GetHLSLProfileName(profile);
OSString wideProfileName = profileName.ToWString();