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

Commit 8a40f6a6 authored by Chet Haase's avatar Chet Haase Committed by Android (Google) Code Review
Browse files

Merge "Fix bug with accelerated translucent rendering"

parents 9c789300 f147340b
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -647,6 +647,9 @@ void OpenGLRenderer::composeLayerRect(Layer* layer, const Rect& rect, bool swap)
void OpenGLRenderer::composeLayerRegion(Layer* layer, const Rect& rect) {
#if RENDER_LAYERS_AS_REGIONS
    if (layer->region.isRect()) {
        const android::Rect& bounds = layer->region.getBounds();
        layer->regionRect.set(bounds.leftTop().x, bounds.leftTop().y,
                bounds.rightBottom().x, bounds.rightBottom().y);
        composeLayerRect(layer, layer->regionRect);
        layer->region.clear();
        return;