diff options
author | bsalomon <bsalomon@google.com> | 2015-06-04 13:57:00 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-06-04 13:57:00 -0700 |
commit | d624634aff330485dc56fc09773cc6d4ec092c4d (patch) | |
tree | 478f09bbce716885643333f1ecd6cba5c1dda66a | |
parent | 270fe6aad558cf60f182b440cd0c452340f96428 (diff) |
Disable unused attributes when using copy shader
BUG=chromium:496540
Review URL: https://codereview.chromium.org/1157943007
-rw-r--r-- | src/gpu/gl/GrGLGpu.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/gl/GrGLGpu.cpp b/src/gpu/gl/GrGLGpu.cpp index 769633453b..08e83ec197 100644 --- a/src/gpu/gl/GrGLGpu.cpp +++ b/src/gpu/gl/GrGLGpu.cpp @@ -2821,7 +2821,7 @@ void GrGLGpu::copySurfaceAsDraw(GrSurface* dst, fHWGeometryState.bindArrayAndBufferToDraw(this, fCopyProgram.fArrayBuffer); attribs->set(this, 0, fCopyProgram.fArrayBuffer, 2, GR_GL_FLOAT, false, 2 * sizeof(GrGLfloat), 0); - + attribs->disableUnusedArrays(this, 0x1); // dst rect edges in NDC (-1 to 1) int dw = dst->width(); |