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

Commit 72c384e0 authored by Kristian Monsen's avatar Kristian Monsen
Browse files

Fix for simulator build

The code looks correct, but causes an internal compiler error on
simulator builds on mine (an other) gLucid desktops.

Change-Id: Iaf0d8120778ec1c6fc739ef13e6eaaac53e3bcc8
parent 6fd9624f
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,