diff options
author | bsalomon <bsalomon@google.com> | 2015-11-23 07:09:50 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-11-23 07:09:50 -0800 |
commit | a98419be092cce2a7ef27a09b6fd8065ff709cff (patch) | |
tree | 299492646b783bd8a3592881b846cb93cee12614 /src/gpu/gl/GrGLGpu.cpp | |
parent | 8e8eda9d4d2e6e65e3339eaaaf8144a4ef6c721c (diff) |
Review URL: https://codereview.chromium.org/1464593004
Diffstat (limited to 'src/gpu/gl/GrGLGpu.cpp')
-rw-r--r-- | src/gpu/gl/GrGLGpu.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gpu/gl/GrGLGpu.cpp b/src/gpu/gl/GrGLGpu.cpp index 51145c8988..5eac42028e 100644 --- a/src/gpu/gl/GrGLGpu.cpp +++ b/src/gpu/gl/GrGLGpu.cpp @@ -454,6 +454,11 @@ GrTexture* GrGLGpu::onWrapBackendTexture(const GrBackendTextureDesc& desc, return nullptr; } } + // Sample count is interpretted to mean the number of samples that Gr code should allocate + // for a render buffer that resolves to the texture. We don't support MSAA textures. + if (desc.fSampleCnt && !renderTarget) { + return nullptr; + } switch (ownership) { case kAdopt_GrWrapOwnership: |