| commit | a47a48dca5045d71cbc5de343404045209a13e15 | [log] [tgz] |
|---|---|---|
| author | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Tue Apr 26 20:22:11 2011 +0000 |
| committer | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Tue Apr 26 20:22:11 2011 +0000 |
| tree | 59f7c328c3667bdb73bcadbc74dcf1b78f9482d6 | |
| parent | 2adc557b0f769d006af0e82659b3bbc5de4c9dc3 [diff] [blame] |
SSSA for drawVerts, cleanup determination of when stage is enabled Review URL: http://codereview.appspot.com/4430066/ git-svn-id: http://skia.googlecode.com/svn/trunk@1195 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/gpu/src/GrGpuGLShaders2.cpp b/gpu/src/GrGpuGLShaders2.cpp index 851732e..ab8a4bb 100644 --- a/gpu/src/GrGpuGLShaders2.cpp +++ b/gpu/src/GrGpuGLShaders2.cpp
@@ -1044,7 +1044,7 @@ for (int s = 0; s < kNumStages; ++s) { StageDesc& stage = desc->fStages[s]; - stage.fEnabled = VertexUsesStage(s, fGeometrySrc.fVertexLayout); + stage.fEnabled = this->isStageEnabled(s); if (stage.fEnabled) { GrGLTexture* texture = (GrGLTexture*) fCurrDrawState.fTextures[s];