diff options
author | 2013-11-07 22:06:08 +0000 | |
---|---|---|
committer | 2013-11-07 22:06:08 +0000 | |
commit | d3baf20dd1de9940717dd50b5c9ff6061561342e (patch) | |
tree | ae0f7b376e67362e4e20cf3a6edc5309dc48b9b5 /src/gpu/effects/GrConvolutionEffect.cpp | |
parent | 5e4d9819dbcbfbbdbd2ad2840b9c1b2b01c98db1 (diff) |
Added support for Chrome's gpu command buffer extension BindUniformLocation.
R=bsalomon@google.com, bsalomon
Author: skaslev@chromium.org
Review URL: https://codereview.chromium.org/62163004
git-svn-id: http://skia.googlecode.com/svn/trunk@12178 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/effects/GrConvolutionEffect.cpp')
-rw-r--r-- | src/gpu/effects/GrConvolutionEffect.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gpu/effects/GrConvolutionEffect.cpp b/src/gpu/effects/GrConvolutionEffect.cpp index 4d16361fe5..57cdece9d8 100644 --- a/src/gpu/effects/GrConvolutionEffect.cpp +++ b/src/gpu/effects/GrConvolutionEffect.cpp @@ -120,7 +120,7 @@ void GrGLConvolutionEffect::setData(const GrGLUniformManager& uman, default: GrCrash("Unknown filter direction."); } - uman.set2fv(fImageIncrementUni, 0, 1, imageIncrement); + uman.set2fv(fImageIncrementUni, 1, imageIncrement); if (conv.useBounds()) { const float* bounds = conv.bounds(); if (Gr1DKernelEffect::kY_Direction == conv.direction() && @@ -130,7 +130,7 @@ void GrGLConvolutionEffect::setData(const GrGLUniformManager& uman, uman.set2f(fBoundsUni, bounds[0], bounds[1]); } } - uman.set1fv(fKernelUni, 0, this->width(), conv.kernel()); + uman.set1fv(fKernelUni, this->width(), conv.kernel()); } GrGLEffect::EffectKey GrGLConvolutionEffect::GenKey(const GrDrawEffect& drawEffect, |