aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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,