[Fix]: (MG_Util/ShaderTranspiler/TMglGlslIoResolver): guard against vertex stage

This commit is contained in:
2025-11-11 17:51:33 +08:00
parent 6ac0fd6f0a
commit f0cf49f3ec
@@ -8,7 +8,7 @@ namespace MobileGL {
void TMglGlslIoResolver::reserverStorageSlot(glslang::TVarEntryInfo& ent, TInfoSink& infoSink) {
const glslang::TType& type = ent.symbol->getType();
const glslang::TString& name = ent.symbol->getAccessName();
if (type.getQualifier().isPipeInput()) {
if (currentStage == EShLangVertex && type.getQualifier().isPipeInput()) {
auto it = m_explicitAttribLocations.find(name.c_str());
if (it != m_explicitAttribLocations.end()) {
auto& writableType = ent.symbol->getWritableType();