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

Commit e1627c9d authored by Romain Guy's avatar Romain Guy Committed by Android (Google) Code Review
Browse files

Merge "Don't use two different variables to refer to mSnapshot."

parents 50db92c4 58ae6db4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -357,7 +357,7 @@ bool OpenGLRenderer::createLayer(sp<Snapshot> snapshot, float left, float top,
        mSnapshot->transform->mapRect(bounds);

        // Layers only make sense if they are in the framebuffer's bounds
        bounds.intersect(*mSnapshot->clipRect);
        bounds.intersect(*snapshot->clipRect);

        // When the layer is not an FBO, we may use glCopyTexImage so we
        // need to make sure the layer does not extend outside the bounds