Index: src/gpu/GrInOrderDrawBuffer.cpp |
diff --git a/src/gpu/GrInOrderDrawBuffer.cpp b/src/gpu/GrInOrderDrawBuffer.cpp |
index cae1bd5c9ec3bebeb07cfd107e24222c4ff2e9bf..1840ca32d7f6cf235dd13545ef4bb933650d63f4 100644 |
--- a/src/gpu/GrInOrderDrawBuffer.cpp |
+++ b/src/gpu/GrInOrderDrawBuffer.cpp |
@@ -575,6 +575,7 @@ bool GrInOrderDrawBuffer::onCopySurface(GrSurface* dst, |
const SkIRect& srcRect, |
const SkIPoint& dstPoint) { |
if (getGpu()->canCopySurface(dst, src, srcRect, dstPoint)) { |
+ this->closeBatch(); |
CopySurface* cs = GrNEW_APPEND_TO_RECORDER(fCmdBuffer, CopySurface, (dst, src)); |
cs->fSrcRect = srcRect; |
cs->fDstPoint = dstPoint; |