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
diff --git a/gpu/src/GrGpuGLShaders.cpp b/gpu/src/GrGpuGLShaders.cpp
index c16e9e0..66056c9 100644
--- a/gpu/src/GrGpuGLShaders.cpp
+++ b/gpu/src/GrGpuGLShaders.cpp
@@ -224,7 +224,7 @@
 
     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 dbd50bf..851732e 100644
--- a/gpu/src/GrGpuGLShaders2.cpp
+++ b/gpu/src/GrGpuGLShaders2.cpp
@@ -1214,7 +1214,7 @@
 
     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,