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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user