From 732734acd67469fe6a251f5a72a2ba3d433de9b8 Mon Sep 17 00:00:00 2001 From: Kristian Monsen Date: Wed, 27 Oct 2010 17:59:09 +0100 Subject: 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 --- opengl/libagl/egl.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'opengl') 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, -- cgit v1.1