Index: src/gpu/gl/builders/GrGLProgramBuilder.cpp |
diff --git a/src/gpu/gl/builders/GrGLProgramBuilder.cpp b/src/gpu/gl/builders/GrGLProgramBuilder.cpp |
index 079b129cb1808d2794101c276d75d834ef8abd56..2db568693d8a678002866e1560692facb343a76e 100644 |
--- a/src/gpu/gl/builders/GrGLProgramBuilder.cpp |
+++ b/src/gpu/gl/builders/GrGLProgramBuilder.cpp |
@@ -124,7 +124,7 @@ void GrGLProgramBuilder::nameVariable(SkString* out, char prefix, const char* na |
// Names containing "__" are reserved. |
out->append("x"); |
} |
- out->appendf("_Stage%d", fStageIndex); |
+ out->appendf("_Stage%d%s", fStageIndex, fFS.getMangleString().c_str()); |
} |
} |