Index: src/gpu/vk/GrVkGpu.cpp |
diff --git a/src/gpu/vk/GrVkGpu.cpp b/src/gpu/vk/GrVkGpu.cpp |
index e1e99ed0209b7be99cba0930fc73cb8d866a64ae..e2ec3781a31030489841a7974965a86dd4fba047 100644 |
--- a/src/gpu/vk/GrVkGpu.cpp |
+++ b/src/gpu/vk/GrVkGpu.cpp |
@@ -1209,15 +1209,18 @@ void GrVkGpu::copySurfaceAsBlit(GrSurface* dst, |
// Flip rect if necessary |
SkIRect srcVkRect; |
+ srcVkRect.fLeft = srcRect.fLeft; |
+ srcVkRect.fRight = srcRect.fRight; |
SkIRect dstRect; |
dstRect.fLeft = dstPoint.fX; |
- dstRect.fRight = dstPoint.fX + srcVkRect.width(); |
+ dstRect.fRight = dstPoint.fX + srcRect.width(); |
jvanverth1
2016/04/07 17:03:54
whoops
|
if (kBottomLeft_GrSurfaceOrigin == src->origin()) { |
srcVkRect.fTop = src->height() - srcRect.fBottom; |
srcVkRect.fBottom = src->height() - srcRect.fTop; |
} else { |
- srcVkRect = srcRect; |
+ srcVkRect.fTop = srcRect.fTop; |
+ srcVkRect.fBottom = srcRect.fBottom; |
} |
if (kBottomLeft_GrSurfaceOrigin == dst->origin()) { |