зеркало из https://github.com/mozilla/moz-skia.git
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:
Родитель
83acbe0a78
Коммит
e624caf6c3
|
@ -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,
|
||||
|
|
Загрузка…
Ссылка в новой задаче