commit | aa814fe4a148b05f9160a5f77cb4e630406ea62d | [log] [tgz] |
---|---|---|
author | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Mon Dec 12 18:45:07 2011 +0000 |
committer | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Mon Dec 12 18:45:07 2011 +0000 |
tree | 7c6cabf3451402200f130cdb5b42d5d9bcccaa49 | |
parent | 4d4f281b28c3db0513ea1a68db4577e2518002b3 [diff] [blame] |
Access sampler matrices directly, cleanup GrSamplerState::reset()s Review URL: http://codereview.appspot.com/5488048/ git-svn-id: http://skia.googlecode.com/svn/trunk@2854 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/gpu/GrDrawTarget.cpp b/src/gpu/GrDrawTarget.cpp index aa5cf20..4211da9 100644 --- a/src/gpu/GrDrawTarget.cpp +++ b/src/gpu/GrDrawTarget.cpp
@@ -1085,7 +1085,7 @@ drawState->setViewMatrix(fViewMatrix); for (int s = 0; s < GrDrawState::kNumStages; ++s) { if (fStageMask & (1 << s)) { - drawState->sampler(s)->setMatrix(fSamplerMatrices[s]); + *drawState->sampler(s)->matrix() = fSamplerMatrices[s]; } } }