Index: src/image/SkImage_Gpu.cpp |
diff --git a/src/image/SkImage_Gpu.cpp b/src/image/SkImage_Gpu.cpp |
index d9ae619e5fa43b485055f9888401a57ca255a7ce..381ef676b0de718bd0cbae91e5d6c0ae80988a49 100644 |
--- a/src/image/SkImage_Gpu.cpp |
+++ b/src/image/SkImage_Gpu.cpp |
@@ -235,7 +235,8 @@ SkImage* SkImage::NewFromYUVTexturesCopy(GrContext* ctx , SkYUVColorSpace colorS |
const SkRect rect = SkRect::MakeWH(SkIntToScalar(dstDesc.fWidth), |
SkIntToScalar(dstDesc.fHeight)); |
- GrDrawContext* drawContext = ctx->drawContext(); |
+ GrDrawContext* drawContext = ctx->drawContext(dst->asRenderTarget()); |
+ // nothing to "use" in this case |
drawContext->drawRect(dst->asRenderTarget(), GrClip::WideOpen(), paint, SkMatrix::I(), rect); |
ctx->flushSurfaceWrites(dst); |
return SkNEW_ARGS(SkImage_Gpu, (dstDesc.fWidth, dstDesc.fHeight, kOpaque_SkAlphaType, dst, 0, |