mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-08 04:08:32 +09:00
[Fix]: (MG_Util/ShaderTranspiler/TMglGlslIoResolver): guard against vertex stage
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user