Index: src/image/SkSurface_Gpu.cpp |
diff --git a/src/image/SkSurface_Gpu.cpp b/src/image/SkSurface_Gpu.cpp |
index 687ca6c5ba7feec5854a7d833855cf02e7c08a47..154f1793f05089784a603e449b3f868c7fe76212 100644 |
--- a/src/image/SkSurface_Gpu.cpp |
+++ b/src/image/SkSurface_Gpu.cpp |
@@ -126,7 +126,7 @@ SkSurface* SkSurface::NewRenderTarget(GrContext* ctx, const SkImage::Info& info, |
SkBitmap::Config config = SkImageInfoToBitmapConfig(info, &isOpaque); |
GrTextureDesc desc; |
- desc.fFlags = kRenderTarget_GrTextureFlagBit; |
+ desc.fFlags = kRenderTarget_GrTextureFlagBit | kCheckAllocation_GrTextureFlagBit; |
desc.fWidth = info.fWidth; |
desc.fHeight = info.fHeight; |
desc.fConfig = SkBitmapConfig2GrPixelConfig(config); |