| Index: src/gpu/GrDrawTarget.cpp
|
| diff --git a/src/gpu/GrDrawTarget.cpp b/src/gpu/GrDrawTarget.cpp
|
| index 2f395e666de203251b955954f5f638a74c6c890a..688a7445a11c88c56e6e5952d6da7614967a0d7a 100644
|
| --- a/src/gpu/GrDrawTarget.cpp
|
| +++ b/src/gpu/GrDrawTarget.cpp
|
| @@ -971,7 +971,7 @@ bool GrDrawTarget::canCopySurface(const GrSurface* dst,
|
| SkASSERT(clippedDstPoint.fX + clippedSrcRect.width() <= dst->width() &&
|
| clippedDstPoint.fY + clippedSrcRect.height() <= dst->height());
|
|
|
| - return !dst->surfacePriv().isSameAs(src) && dst->asRenderTarget() && src->asTexture();
|
| + return (dst != src) && dst->asRenderTarget() && src->asTexture();
|
| }
|
|
|
| void GrDrawTarget::initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) {
|
|
|