summaryrefslogtreecommitdiffstats
path: root/opengl/libagl
diff options
context:
space:
mode:
authorKristian Monsen <kristianm@google.com>2010-10-27 17:59:09 +0100
committerKristian Monsen <kristianm@google.com>2010-10-27 22:49:34 +0100
commit72c384e0a16504638927fea2da36a4731953c8df (patch)
treef5f4f6cf9e96238c3e07199817ae357fce425a3a /opengl/libagl
parent6fd9624fcddcda1e1d3c44191f3777b271fbee26 (diff)
downloadframeworks_native-72c384e0a16504638927fea2da36a4731953c8df.zip
frameworks_native-72c384e0a16504638927fea2da36a4731953c8df.tar.gz
frameworks_native-72c384e0a16504638927fea2da36a4731953c8df.tar.bz2
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
Diffstat (limited to 'opengl/libagl')
-rw-r--r--opengl/libagl/egl.cpp4
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,