Index: src/image/SkSurface_Gpu.cpp |
diff --git a/src/image/SkSurface_Gpu.cpp b/src/image/SkSurface_Gpu.cpp |
index 03fdecef3a720115cf531c22bdf69c8e1df1cba2..846e2141cda013cac6a59d7d49a3919e5951c7ff 100644 |
--- a/src/image/SkSurface_Gpu.cpp |
+++ b/src/image/SkSurface_Gpu.cpp |
@@ -85,7 +85,7 @@ SkImage* SkSurface_Gpu::onNewImageSnapshot(Budgeted budgeted, ForceCopyMode forc |
if (kYes_ForceCopyMode == forceCopyMode || !tex) { |
GrSurfaceDesc desc = fDevice->accessRenderTarget()->desc(); |
GrContext* ctx = fDevice->context(); |
- desc.fFlags = desc.fFlags & !kRenderTarget_GrSurfaceFlag; |
+ desc.fFlags = desc.fFlags & ~kRenderTarget_GrSurfaceFlag; |
copy.reset(ctx->textureProvider()->createTexture(desc, kYes_Budgeted == budgeted)); |
if (!copy) { |
return nullptr; |