diff options
author | 2015-08-19 09:10:28 -0700 | |
---|---|---|
committer | 2015-08-19 09:10:28 -0700 | |
commit | 4b013296bf67df6c8d119a8f5a2b3dd6530c0b6f (patch) | |
tree | 946c1b9153f195d71b7be8c319c6f43a75527a21 /src/gpu/gl/GrGLGpu.cpp | |
parent | ae5b2c623b22b24ea7c0d6200298e5bc366faa63 (diff) |
Add rendertarget flag to prevent a debug assert in SampleApp.
BUG=skia:4223
Review URL: https://codereview.chromium.org/1301583006
Diffstat (limited to 'src/gpu/gl/GrGLGpu.cpp')
-rw-r--r-- | src/gpu/gl/GrGLGpu.cpp | 2 |
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()); |