aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/gl/GrGLGpu.cpp
diff options
context:
space:
mode:
authorGravatar senorblanco <senorblanco@chromium.org>2015-08-19 09:10:28 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-08-19 09:10:28 -0700
commit4b013296bf67df6c8d119a8f5a2b3dd6530c0b6f (patch)
tree946c1b9153f195d71b7be8c319c6f43a75527a21 /src/gpu/gl/GrGLGpu.cpp
parentae5b2c623b22b24ea7c0d6200298e5bc366faa63 (diff)
Add rendertarget flag to prevent a debug assert in SampleApp.
Diffstat (limited to 'src/gpu/gl/GrGLGpu.cpp')
-rw-r--r--src/gpu/gl/GrGLGpu.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/gl/GrGLGpu.cpp b/src/gpu/gl/GrGLGpu.cpp
index 0945ed5651..c88b0b2ea4 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());