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; }