Fix GrSamplerState::operator=() to take a reference rather than a copy.

Visual review by bsalomon@.



git-svn-id: http://skia.googlecode.com/svn/trunk@4128 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
tomhudson@google.com 2012-06-01 19:50:02 +00:00
parent 04640299dc
commit 0bdbed3802

View File

@ -115,7 +115,7 @@ public:
}
bool operator !=(const GrSamplerState& s) const { return !(*this == s); }
GrSamplerState& operator =(const GrSamplerState s) {
GrSamplerState& operator =(const GrSamplerState& s) {
// memcpy() breaks refcounting
fWrapX = s.fWrapX;
fWrapY = s.fWrapY;