diff options
author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-10-31 15:50:43 +0000 |
---|---|---|
committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-10-31 15:50:43 +0000 |
commit | 94bdd7e3fcf493f827263bd922cb09fb4b50df4c (patch) | |
tree | c7bfb4b07deb28223c78af4de69e2440f34c3427 | |
parent | e4e5cabb4810e3614d83f9c96da80477b90e47ca (diff) |
Fix bug in don't-reuse-scratch-textures path
https://codereview.chromium.org/50853003/
git-svn-id: http://skia.googlecode.com/svn/trunk@12054 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r-- | src/gpu/GrClipMaskManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/GrClipMaskManager.cpp b/src/gpu/GrClipMaskManager.cpp index bcc71f4eae..c8713b63ad 100644 --- a/src/gpu/GrClipMaskManager.cpp +++ b/src/gpu/GrClipMaskManager.cpp @@ -407,7 +407,7 @@ bool GrClipMaskManager::getMaskTexture(int32_t clipStackGenID, desc.fWidth = clipSpaceIBounds.width(); desc.fHeight = clipSpaceIBounds.height(); desc.fConfig = kRGBA_8888_GrPixelConfig; - if (this->getContext()->isConfigRenderable(kAlpha_8_GrPixelConfig, false)) { + if (willUpload || this->getContext()->isConfigRenderable(kAlpha_8_GrPixelConfig, false)) { // We would always like A8 but it isn't supported on all platforms desc.fConfig = kAlpha_8_GrPixelConfig; } |