summaryrefslogtreecommitdiff
path: root/libs/surfaceflinger/LayerBase.cpp
diff options
context:
space:
mode:
author Android (Google) Code Review <android-gerrit@google.com> 2009-09-04 18:17:15 -0700
committer Android (Google) Code Review <android-gerrit@google.com> 2009-09-04 18:17:15 -0700
commit1ca4292a2d931c6d0e1225765a0161a8a178531c (patch)
tree548558cf714e94e2c674f27f23508a932046404b /libs/surfaceflinger/LayerBase.cpp
parent556d47426c47ad76edc33d7a5e92cc7a0b392579 (diff)
parent888eee68dbe82f2fe613f4ffdd34c1154618577c (diff)
Merge change 24048 into eclair
* changes: fix [2098939] Smooth gradients show banding on Sholes
Diffstat (limited to 'libs/surfaceflinger/LayerBase.cpp')
-rw-r--r--libs/surfaceflinger/LayerBase.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/surfaceflinger/LayerBase.cpp b/libs/surfaceflinger/LayerBase.cpp
index 9ddf9720e4..ec38fe9fd5 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);