Fix copy/paste error in GrDrawTarget::AutoStateRestore::set
authorbsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Wed, 22 Jun 2011 01:28:17 +0000 (01:28 +0000)
committerbsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Wed, 22 Jun 2011 01:28:17 +0000 (01:28 +0000)
Review URL: http://codereview.appspot.com/4639063/

git-svn-id: http://skia.googlecode.com/svn/trunk@1670 2bbb7eff-a529-9590-31e7-b0007b416f81

gpu/src/GrDrawTarget.cpp

index cc64058..0f68872 100644 (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;
     }