diff options
author | Mathias Agopian <mathias@google.com> | 2009-09-04 17:27:16 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2009-09-04 17:27:16 -0700 |
commit | 7164b8d645f9463e36eda5eac3dd085e26427bda (patch) | |
tree | 586d651992ef50d5e88d34f05afb706e4e927e57 /libs/surfaceflinger | |
parent | c2042f5e4910c4f7c5b812787ad2b025d93da497 (diff) | |
download | frameworks_base-7164b8d645f9463e36eda5eac3dd085e26427bda.zip frameworks_base-7164b8d645f9463e36eda5eac3dd085e26427bda.tar.gz frameworks_base-7164b8d645f9463e36eda5eac3dd085e26427bda.tar.bz2 |
fix [2098939] Smooth gradients show banding on Sholes
Diffstat (limited to 'libs/surfaceflinger')
-rw-r--r-- | libs/surfaceflinger/LayerBase.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/surfaceflinger/LayerBase.cpp b/libs/surfaceflinger/LayerBase.cpp index 9ddf972..ec38fe9 100644 --- a/libs/surfaceflinger/LayerBase.cpp +++ b/libs/surfaceflinger/LayerBase.cpp @@ -398,7 +398,8 @@ void LayerBase::drawWithOpenGL(const Region& clip, const Texture& texture) const glEnable(GL_TEXTURE_2D); // Dithering... - if (s.flags & ISurfaceComposer::eLayerDither) { + bool fast = !(mFlags & DisplayHardware::SLOW_CONFIG); + if (fast || s.flags & ISurfaceComposer::eLayerDither) { glEnable(GL_DITHER); } else { glDisable(GL_DITHER); |