diff options
-rw-r--r-- | opengl/libagl/egl.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/opengl/libagl/egl.cpp b/opengl/libagl/egl.cpp index e44c485..7c496e7 100644 --- a/opengl/libagl/egl.cpp +++ b/opengl/libagl/egl.cpp @@ -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, |