Merge change 24048 into eclair

* changes:
  fix [2098939] Smooth gradients show banding on Sholes
This commit is contained in:
Android (Google) Code Review
2009-09-04 18:17:15 -07:00

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