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

Commit a0dcbcc9 authored by Kristian Monsen's avatar Kristian Monsen Committed by Android (Google) Code Review
Browse files

Merge "Fix for simulator build"

parents 6061eb87 72c384e0
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -546,7 +546,9 @@ EGLBoolean egl_window_surface_v2_t::swapBuffers()
    if (!dirtyRegion.isEmpty()) {
        dirtyRegion.andSelf(Rect(buffer->width, buffer->height));
        if (previousBuffer) {
            const Region copyBack(Region::subtract(oldDirtyRegion, dirtyRegion));
            // This was const Region copyBack, but that causes an
            // internal compile error on simulator builds
            /*const*/ Region copyBack(Region::subtract(oldDirtyRegion, dirtyRegion));
            if (!copyBack.isEmpty()) {
                void* prevBits;
                if (lock(previousBuffer,