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

Commit c43b7d2b authored by Steve Kondik's avatar Steve Kondik
Browse files

Revert "Remove opaque check in GLRenderer when preparing dirty region."

 * This causes artifacts even with 8974 drivers.

This reverts commit c422280a.

Change-Id: Iec4addc2d8aaeb6ce6a359aafd9fd9b97aef95e6
parent 8a3cb1aa
Loading
Loading
Loading
Loading

libs/hwui/OpenGLRenderer.cpp

100755 → 100644
+1 −9
Original line number Diff line number Diff line
@@ -208,22 +208,14 @@ status_t OpenGLRenderer::prepareDirty(float left, float top, float right, float
}

status_t OpenGLRenderer::clear(float left, float top, float right, float bottom, bool opaque) {
#ifdef QCOM_BSP
    mCaches.enableScissor();
    mCaches.setScissor(left, mSnapshot->height - bottom, right - left, bottom - top);
    glClear(GL_COLOR_BUFFER_BIT);
    if(opaque)
        mCaches.resetScissor();
#else
    if (!opaque) {
        mCaches.enableScissor();
        mCaches.setScissor(left, mSnapshot->height - bottom, right - left, bottom - top);
        glClear(GL_COLOR_BUFFER_BIT);
        return DrawGlInfo::kStatusDrew;
    }
    mCaches.resetScissor();
#endif

    mCaches.resetScissor();
    return DrawGlInfo::kStatusDone;
}