diff options
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 |
commit | 3194a66329ea617c1f7bf558e2ac6a765860dd97 (patch) | |
tree | 0ead92ed3f6eeb881aec5241e3d19dd1cf795952 /libs | |
parent | 2d496bfebc010f26d65dd5e3a3c4a8170919cf0a (diff) | |
parent | 7164b8d645f9463e36eda5eac3dd085e26427bda (diff) | |
download | frameworks_base-3194a66329ea617c1f7bf558e2ac6a765860dd97.zip frameworks_base-3194a66329ea617c1f7bf558e2ac6a765860dd97.tar.gz frameworks_base-3194a66329ea617c1f7bf558e2ac6a765860dd97.tar.bz2 |
Merge change 24048 into eclair
* changes:
fix [2098939] Smooth gradients show banding on Sholes
Diffstat (limited to 'libs')
-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); |