From 888eee68dbe82f2fe613f4ffdd34c1154618577c Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Fri, 4 Sep 2009 17:27:16 -0700 Subject: fix [2098939] Smooth gradients show banding on Sholes --- libs/surfaceflinger/LayerBase.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libs/surfaceflinger/LayerBase.cpp') 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); -- cgit v1.2.3-59-g8ed1b