commit | d3c3f0e21d86d73389430b3248fcbfd9f199e3c5 | [log] [tgz] |
---|---|---|
author | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Wed Apr 02 20:47:57 2014 +0000 |
committer | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Wed Apr 02 20:47:57 2014 +0000 |
tree | 85181799ab0eb3860a76637c4bdbd2c3b6c733c8 | |
parent | a749e60e74f7f0446fa6acaff4954b50fc31615c [diff] |
Fix early return when GrCoordTransform is identity. BUG=339721 R=egdaniel@google.com Review URL: https://codereview.chromium.org/222833002 git-svn-id: http://skia.googlecode.com/svn/trunk@14033 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/gpu/gl/GrGLProgramEffects.cpp b/src/gpu/gl/GrGLProgramEffects.cpp index 17c666a..3bcf759 100644 --- a/src/gpu/gl/GrGLProgramEffects.cpp +++ b/src/gpu/gl/GrGLProgramEffects.cpp
@@ -425,7 +425,7 @@ switch (transforms[t].fType) { case kVoid_GrSLType: SkASSERT(get_transform_matrix(drawEffect, t).isIdentity()); - return; + break; case kVec2f_GrSLType: { GrGLfloat tx, ty; get_transform_translation(drawEffect, t, &tx, &ty);