Add rendertarget flag to prevent a debug assert in SampleApp.
BUG=skia:4223 Review URL: https://codereview.chromium.org/1301583006
This commit is contained in:
parent
ae5b2c623b
commit
4b013296bf
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user