Index: src/gpu/gl/GrGLPrimitiveProcessor.cpp |
diff --git a/src/gpu/gl/GrGLPrimitiveProcessor.cpp b/src/gpu/gl/GrGLPrimitiveProcessor.cpp |
index 335dc4fe5f973ea25d42771e5fb75aefed2402f2..2bb595af0140ea2b4e3755e852fac1ec778a0e41 100644 |
--- a/src/gpu/gl/GrGLPrimitiveProcessor.cpp |
+++ b/src/gpu/gl/GrGLPrimitiveProcessor.cpp |
@@ -64,7 +64,7 @@ void GrGLPrimitiveProcessor::addUniformViewMatrix(GrGLGPBuilder* pb) { |
void GrGLPrimitiveProcessor::setUniformViewMatrix(const GrGLProgramDataManager& pdman, |
const SkMatrix& viewMatrix) { |
- if (!fViewMatrix.cheapEqualTo(viewMatrix)) { |
+ if (!viewMatrix.isIdentity() && !fViewMatrix.cheapEqualTo(viewMatrix)) { |
SkASSERT(fViewMatrixUniform.isValid()); |
fViewMatrix = viewMatrix; |