aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-10-31 15:50:43 +0000
committerGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-10-31 15:50:43 +0000
commit94bdd7e3fcf493f827263bd922cb09fb4b50df4c (patch)
treec7bfb4b07deb28223c78af4de69e2440f34c3427
parente4e5cabb4810e3614d83f9c96da80477b90e47ca (diff)
Fix bug in don't-reuse-scratch-textures path
-rw-r--r--src/gpu/GrClipMaskManager.cpp2
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;
}