summaryrefslogtreecommitdiffstats
path: root/source/slang/parameter-binding.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/parameter-binding.cpp')
-rw-r--r--source/slang/parameter-binding.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/parameter-binding.cpp b/source/slang/parameter-binding.cpp
index 6128261c7..9b1036d02 100644
--- a/source/slang/parameter-binding.cpp
+++ b/source/slang/parameter-binding.cpp
@@ -1689,7 +1689,7 @@ void generateParameterBindings(
RefPtr<Variable> var = new Variable();
var->Name.Content = "SLANG_hack_samplerForTexelFetch";
- var->Type.type = new SamplerStateType();
+ var->Type.type = getSamplerStateType(request->mSession);
auto typeLayout = new TypeLayout();
typeLayout->type = var->Type.type;