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

Commit cccc3f05 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Remove opaque check in preparing dirty region"

parents bddda13b 2a2f66b3
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -251,11 +251,12 @@ void OpenGLRenderer::discardFramebuffer(float left, float top, float right, floa
}

status_t OpenGLRenderer::clear(float left, float top, float right, float bottom, bool opaque) {
    if (!opaque) {
    mCaches.enableScissor();
    mCaches.setScissor(left, getViewportHeight() - bottom, right - left, bottom - top);
    glClear(GL_COLOR_BUFFER_BIT);
        return DrawGlInfo::kStatusDrew;
    if (opaque) {
        mCaches.resetScissor();
        return DrawGlInfo::kStatusDone;
    }

    return DrawGlInfo::kStatusDrew;