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

Commit 29d4d938 authored by Wei Zou's avatar Wei Zou Committed by Giulio Cervera
Browse files

Remove opaque check in GLRenderer when preparing dirty region.

Since preserved swap is enabled, we need to clear the color buffer
when the scissor rect is prepared for a new process. This prevents
garbage to be present from the previous process in the color buffer
parent 48e14701
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -170,10 +170,15 @@ void OpenGLRenderer::prepareDirty(float left, float top, float right, float bott
    glScissor(left, mSnapshot->height - bottom, right - left, bottom - top);
    mSnapshot->setClip(left, top, right, bottom);

#ifdef QCOM_HARDWARE
    glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
    glClear(GL_COLOR_BUFFER_BIT);
#else
    if (!opaque) {
        glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
        glClear(GL_COLOR_BUFFER_BIT);
    }
#endif
}

void OpenGLRenderer::finish() {