aboutsummaryrefslogtreecommitdiffhomepage
path: root/gpu
diff options
context:
space:
mode:
authorGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-04-22 19:22:58 +0000
committerGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-04-22 19:22:58 +0000
commite624caf6c33e1379a7f6f8333a8f0ec25025420e (patch)
treea601dfad2d95964a919f4f0d497f8acce85b0f03 /gpu
parent83acbe0a789fe045f6a8053f0c533e6de8df9e58 (diff)
Fix copy/paste bug that causes stage 0 sample mode to be used for all stages
git-svn-id: http://skia.googlecode.com/svn/trunk@1168 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gpu')
-rw-r--r--gpu/src/GrGpuGLShaders.cpp2
-rw-r--r--gpu/src/GrGpuGLShaders2.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/gpu/src/GrGpuGLShaders.cpp b/gpu/src/GrGpuGLShaders.cpp
index c16e9e05fc..66056c9273 100644
--- a/gpu/src/GrGpuGLShaders.cpp
+++ b/gpu/src/GrGpuGLShaders.cpp
@@ -224,7 +224,7 @@ void GrGpuGLShaders::flushTextureMatrix(int stage) {
GrMatrix m = getSamplerMatrix(stage);
GrSamplerState::SampleMode mode =
- fCurrDrawState.fSamplerStates[0].getSampleMode();
+ fCurrDrawState.fSamplerStates[stage].getSampleMode();
AdjustTextureMatrix(texture, mode, &m);
// ES doesn't allow you to pass true to the transpose param,
diff --git a/gpu/src/GrGpuGLShaders2.cpp b/gpu/src/GrGpuGLShaders2.cpp
index dbd50bfc90..851732e50b 100644
--- a/gpu/src/GrGpuGLShaders2.cpp
+++ b/gpu/src/GrGpuGLShaders2.cpp
@@ -1214,7 +1214,7 @@ void GrGpuGLShaders2::flushTextureMatrix(int stage) {
GrMatrix m = getSamplerMatrix(stage);
GrSamplerState::SampleMode mode =
- fCurrDrawState.fSamplerStates[0].getSampleMode();
+ fCurrDrawState.fSamplerStates[stage].getSampleMode();
AdjustTextureMatrix(texture, mode, &m);
// ES doesn't allow you to pass true to the transpose param,