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

Commit 52b2cf9f authored by Dohyun Lee's avatar Dohyun Lee Committed by Chris Craik
Browse files

Enable stencil clipping within clearLayerRegions



bug:18538502

Cherry-pick of adc0d9da from AOSP

Previously stencil clipping within clearLayerRegions is disabled by commit
62d307c2. However, clearing whole layer
regions causes black-colored triangle regions when a TextView has
RotateAnimation because the draw within clearLayerRegions does not
affected by the current stencil clip.

Change-Id: Id32a0b16754b109905f833e063ebfa156bd953f2
Signed-off-by: default avatarDohyun Lee <dohyun.lee@lge.com>
parent 6c912b7d
Loading
Loading
Loading
Loading
+1 −7
Original line number Diff line number Diff line
@@ -1586,13 +1586,7 @@ void OpenGLRenderer::setupDraw(bool clearLayer) {
            setScissorFromClip();
        }

        if (clearLayer) {
        setStencilFromClip();
        } else {
            // While clearing layer, force disable stencil buffer, since
            // it's invalid to stencil-clip *during* the layer clear
            mCaches.stencil.disable();
        }
    }

    mDescription.reset();