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

Commit 0d5ac954 authored by Chris Craik's avatar Chris Craik
Browse files

Fix translated VertexBuffer layer damage calculation

b/15986851

Change-Id: Id6be412e693c5233326164723a0a96e3802d9426
parent 5028fb03
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2351,7 +2351,8 @@ status_t OpenGLRenderer::drawVertexBuffer(float translateX, float translateY,
        return DrawGlInfo::kStatusDone;
    }

    const Rect& bounds = vertexBuffer.getBounds();
    Rect bounds(vertexBuffer.getBounds());
    bounds.translate(translateX, translateY);
    dirtyLayer(bounds.left, bounds.top, bounds.right, bounds.bottom, *currentTransform());

    int color = paint->getColor();