diff options
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. */ |