From d19aa27e03f0fcd540af6b243a657bcd7be98305 Mon Sep 17 00:00:00 2001 From: "bsalomon@google.com" Date: Wed, 22 Jun 2011 01:28:17 +0000 Subject: [PATCH] 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 --- gpu/src/GrDrawTarget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpu/src/GrDrawTarget.cpp b/gpu/src/GrDrawTarget.cpp index cc64058465..0f68872b76 100644 --- a/gpu/src/GrDrawTarget.cpp +++ b/gpu/src/GrDrawTarget.cpp @@ -867,7 +867,7 @@ void GrDrawTarget::AutoStateRestore::set(GrDrawTarget* target) { fDrawTarget->restoreDrawState(fDrawState); } if (NULL != target) { - fDrawTarget->saveCurrentDrawState(&fDrawState); + target->saveCurrentDrawState(&fDrawState); } fDrawTarget = target; }