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

Commit 32963c39 authored by Romain Guy's avatar Romain Guy
Browse files

Ignore empty layers.

Change-Id: Ib2f99cdab654881fe079306e27d87c5ef9535700
parent 25dc3a7d
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -385,11 +385,7 @@ bool OpenGLRenderer::createLayer(sp<Snapshot> snapshot, float left, float top,

    if (bounds.isEmpty() || bounds.getWidth() > mCaches.maxTextureSize ||
            bounds.getHeight() > mCaches.maxTextureSize) {
        if (fboLayer) {
            snapshot->invisible = true;
        } else {
            snapshot->empty = true;
        }
        snapshot->empty = fboLayer;
    } else {
        snapshot->invisible = snapshot->invisible || (alpha <= ALPHA_THRESHOLD && fboLayer);
    }