| Index: src/gpu/GrTexture.cpp
|
| diff --git a/src/gpu/GrTexture.cpp b/src/gpu/GrTexture.cpp
|
| index fb5a8d350e1551458f91768ed66a311aa23e8140..63069a452bd6bfd17cd50548b957864765b5c260 100644
|
| --- a/src/gpu/GrTexture.cpp
|
| +++ b/src/gpu/GrTexture.cpp
|
| @@ -29,7 +29,7 @@ void GrTexture::internal_dispose() const {
|
| if (this->impl()->isSetFlag((GrTextureFlags) GrTextureImpl::kReturnToCache_FlagBit) &&
|
| NULL != this->INHERITED::getContext()) {
|
| GrTexture* nonConstThis = const_cast<GrTexture *>(this);
|
| - this->fRefCnt = 1; // restore ref count to initial setting
|
| + this->ref(); // restore ref count to initial setting
|
|
|
| nonConstThis->impl()->resetFlag((GrTextureFlags) GrTextureImpl::kReturnToCache_FlagBit);
|
| nonConstThis->INHERITED::getContext()->addExistingTextureToCache(nonConstThis);
|
| @@ -39,7 +39,6 @@ void GrTexture::internal_dispose() const {
|
| return;
|
| }
|
|
|
| - SkASSERT(0 == this->getDeferredRefCount());
|
| this->INHERITED::internal_dispose();
|
| }
|
|
|
|
|