projects
/
platform
/
upstream
/
libSkiaSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
270fe6a
)
Disable unused attributes when using copy shader
author
bsalomon
<bsalomon@google.com>
Thu, 4 Jun 2015 20:57:00 +0000
(13:57 -0700)
committer
Commit bot
<commit-bot@chromium.org>
Thu, 4 Jun 2015 20:57:00 +0000
(13:57 -0700)
BUG=chromium:496540
Review URL: https://codereview.chromium.org/
1157943007
src/gpu/gl/GrGLGpu.cpp
patch
|
blob
|
history
diff --git
a/src/gpu/gl/GrGLGpu.cpp
b/src/gpu/gl/GrGLGpu.cpp
index
7696334
..
08e83ec
100644
(file)
--- 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();