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
This commit is contained in:
bsalomon@google.com 2011-04-22 19:22:58 +00:00
Родитель 83acbe0a78
Коммит e624caf6c3
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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,

Просмотреть файл

@ -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,