Index: src/effects/SkMatrixConvolutionImageFilter.cpp |
diff --git a/src/effects/SkMatrixConvolutionImageFilter.cpp b/src/effects/SkMatrixConvolutionImageFilter.cpp |
index 4864aec65aefd60798df0062a82465521bb9f601..6f213d71184887a8c61c5ee0c27489d374256003 100644 |
--- a/src/effects/SkMatrixConvolutionImageFilter.cpp |
+++ b/src/effects/SkMatrixConvolutionImageFilter.cpp |
@@ -537,9 +537,9 @@ void GrGLMatrixConvolutionEffect::setData(const GrGLUniformManager& uman, |
float ySign = texture.origin() == kTopLeft_GrSurfaceOrigin ? 1.0f : -1.0f; |
imageIncrement[0] = 1.0f / texture.width(); |
imageIncrement[1] = ySign / texture.height(); |
- uman.set2fv(fImageIncrementUni, 0, 1, imageIncrement); |
- uman.set2fv(fTargetUni, 0, 1, conv.target()); |
- uman.set1fv(fKernelUni, 0, fKernelSize.width() * fKernelSize.height(), conv.kernel()); |
+ uman.set2fv(fImageIncrementUni, 1, imageIncrement); |
+ uman.set2fv(fTargetUni, 1, conv.target()); |
+ uman.set1fv(fKernelUni, fKernelSize.width() * fKernelSize.height(), conv.kernel()); |
uman.set1f(fGainUni, conv.gain()); |
uman.set1f(fBiasUni, conv.bias()); |
const SkIRect& bounds = conv.bounds(); |