Skip to content

Commit 0048408

Browse files
committed
Fix.
1 parent 733f6a6 commit 0048408

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

source/slang/slang-ir-glsl-legalize.cpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -3780,8 +3780,11 @@ void legalizeTargetBuiltinVar(GLSLLegalizationContext& context)
37803780
builder.addTargetBuiltinVarDecoration(var, name);
37813781
return var;
37823782
};
3783-
for (auto [builtinVarName, varInst] : workItems)
3783+
for (auto& kv : workItems)
37843784
{
3785+
auto builtinVarName = kv.key;
3786+
auto varInst = kv.value;
3787+
37853788
// Repalce SV_InstanceID with gl_InstanceIndex - gl_BaseInstance.
37863789
if (builtinVarName == IRTargetBuiltinVarName::HlslInstanceID)
37873790
{

0 commit comments

Comments
 (0)