Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 888eee68 authored by Mathias Agopian's avatar Mathias Agopian
Browse files

fix [2098939] Smooth gradients show banding on Sholes

parent 348a950a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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);