Index: src/gpu/gl/GrGLGpu.cpp |
diff --git a/src/gpu/gl/GrGLGpu.cpp b/src/gpu/gl/GrGLGpu.cpp |
index 0945ed565131e78c753ae9095a4269d6414eb48f..c88b0b2ea408b1f332474773db20c0a602da3ef1 100644 |
--- a/src/gpu/gl/GrGLGpu.cpp |
+++ b/src/gpu/gl/GrGLGpu.cpp |
@@ -478,7 +478,7 @@ GrRenderTarget* GrGLGpu::onWrapBackendRenderTarget(const GrBackendRenderTargetDe |
GrSurfaceDesc desc; |
desc.fConfig = wrapDesc.fConfig; |
- desc.fFlags = kCheckAllocation_GrSurfaceFlag; |
+ desc.fFlags = kCheckAllocation_GrSurfaceFlag | kRenderTarget_GrSurfaceFlag; |
desc.fWidth = wrapDesc.fWidth; |
desc.fHeight = wrapDesc.fHeight; |
desc.fSampleCnt = SkTMin(wrapDesc.fSampleCnt, this->caps()->maxSampleCount()); |