diff options
author | 2012-01-18 19:51:55 +0000 | |
---|---|---|
committer | 2012-01-18 19:51:55 +0000 | |
commit | 46f7afb9867200b568c21736da8a8bbb56b20e30 (patch) | |
tree | 76eb71f275e70dae61dfc4ae07041771572e9ae7 /src/gpu/GrDrawState.h | |
parent | b90113dd3de76eef48679f74a9134dcb73d32a7c (diff) |
Turn clipping back on in OSAA pass 1. Skip default cons on GrDrawState when saving off a GrDrawTarget's state.
Review URL: http://codereview.appspot.com/5553051/
git-svn-id: http://skia.googlecode.com/svn/trunk@3067 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/GrDrawState.h')
-rw-r--r-- | src/gpu/GrDrawState.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gpu/GrDrawState.h b/src/gpu/GrDrawState.h index c736f1e3df..18dd6bf406 100644 --- a/src/gpu/GrDrawState.h +++ b/src/gpu/GrDrawState.h @@ -49,7 +49,11 @@ struct GrDrawState { GrDrawState() { this->reset(); } - + + GrDrawState(const GrDrawState& state) { + *this = state; + } + /** * Resets to the default state. Sampler states will not be modified. */ |