Fix copy/paste error in GrDrawTarget::AutoStateRestore::set

Review URL: http://codereview.appspot.com/4639063/



git-svn-id: http://skia.googlecode.com/svn/trunk@1670 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
bsalomon@google.com 2011-06-22 01:28:17 +00:00
parent e1bc274295
commit d19aa27e03

View File

@ -867,7 +867,7 @@ void GrDrawTarget::AutoStateRestore::set(GrDrawTarget* target) {
fDrawTarget->restoreDrawState(fDrawState);
}
if (NULL != target) {
fDrawTarget->saveCurrentDrawState(&fDrawState);
target->saveCurrentDrawState(&fDrawState);
}
fDrawTarget = target;
}