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:
parent
04640299dc
commit
0bdbed3802
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user