diff --git a/MobileGL/MG_Util/ShaderTranspiler/glslang/TMglGlslIoResolver.cpp b/MobileGL/MG_Util/ShaderTranspiler/glslang/TMglGlslIoResolver.cpp index fcff34ca..22fe187e 100644 --- a/MobileGL/MG_Util/ShaderTranspiler/glslang/TMglGlslIoResolver.cpp +++ b/MobileGL/MG_Util/ShaderTranspiler/glslang/TMglGlslIoResolver.cpp @@ -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();