Skip to content

Commit 7435d5d

Browse files
authored
Don't remove in-use globals (shader-slang#6359)
The GLSL interface block implementation accidentally removed global variables which are still in use.
1 parent 944c19b commit 7435d5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -3353,8 +3353,8 @@ void legalizeEntryPointParameterForGLSL(
33533353
// globalVarToReplaceNextUse to catch the next use before it is removed from the
33543354
// list of uses.
33553355
globalVar->replaceUsesWith(realGlobalVar);
3356+
globalVar->removeAndDeallocate();
33563357
}
3357-
globalVar->removeAndDeallocate();
33583358
}
33593359
}
33603360
else

0 commit comments

Comments
 (0)