am 3194a663: Merge change 24048 into eclair

Merge commit '3194a66329ea617c1f7bf558e2ac6a765860dd97' into eclair-plus-aosp

* commit '3194a66329ea617c1f7bf558e2ac6a765860dd97':
  fix [2098939] Smooth gradients show banding on Sholes
This commit is contained in:
Mathias Agopian
2009-09-04 18:18:21 -07:00
committed by Android Git Automerger

View File

@@ -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);