fix [2098939] Smooth gradients show banding on Sholes

This commit is contained in:
Mathias Agopian
2009-09-04 17:27:16 -07:00
parent c2042f5e49
commit 7164b8d645

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