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

Commit dd1df7b1 authored by Mihir Patel's avatar Mihir Patel Committed by Steve Kondik
Browse files

hwui: Always enable the scissor while composing layer

Due to scissor optimization feature added in KK, scissor was disabled
all the time. Hence the undefined areas/region of textures are not
masking properly with GL_LINEAR filter mode.

Change-Id: Ifbbde2c67a4c01e45eda07ada709e066255fffcb
CRs-fixed: 645077
parent 85f2e9d4
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1046,7 +1046,12 @@ void OpenGLRenderer::composeLayer(sp<Snapshot> current, sp<Snapshot> previous) {

    bool clipRequired = false;
    quickRejectNoScissor(rect, &clipRequired); // safely ignore return, should never be rejected
#ifdef QCOM_HARDWARE
    //Always enabling the scissor
    mCaches.setScissorEnabled(true);
#else
    mCaches.setScissorEnabled(mScissorOptimizationDisabled || clipRequired);
#endif

    if (fboLayer) {
        endTiling();