summaryrefslogtreecommitdiffstats
path: root/libs/hwui/OpenGLRenderer.cpp
diff options
context:
space:
mode:
authorRomain Guy <romainguy@android.com>2010-10-22 11:16:37 -0700
committerRomain Guy <romainguy@android.com>2010-10-22 11:16:37 -0700
commit58ae6db4ff8a9d0910e1183ee8be9a038a2712a6 (patch)
tree3c3186965c778b0019af3bb1cc58f8ccc5f1af6a /libs/hwui/OpenGLRenderer.cpp
parentb0be86e08ea124c525eebc41f256a96ee4fc10cc (diff)
downloadframeworks_base-58ae6db4ff8a9d0910e1183ee8be9a038a2712a6.zip
frameworks_base-58ae6db4ff8a9d0910e1183ee8be9a038a2712a6.tar.gz
frameworks_base-58ae6db4ff8a9d0910e1183ee8be9a038a2712a6.tar.bz2
Don't use two different variables to refer to mSnapshot.
Change-Id: Ie4a0616d2fe0b040ac14b734a9ddf77bf1f35b0c
Diffstat (limited to 'libs/hwui/OpenGLRenderer.cpp')
-rw-r--r--libs/hwui/OpenGLRenderer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/OpenGLRenderer.cpp b/libs/hwui/OpenGLRenderer.cpp
index 38e153f..faad297 100644
--- a/libs/hwui/OpenGLRenderer.cpp
+++ b/libs/hwui/OpenGLRenderer.cpp
@@ -357,7 +357,7 @@ bool OpenGLRenderer::createLayer(sp<Snapshot> snapshot, float left, float top,
mSnapshot->transform->mapRect(bounds);
// Layers only make sense if they are in the framebuffer's bounds
- bounds.intersect(*mSnapshot->clipRect);
+ bounds.intersect(*snapshot->clipRect);
// When the layer is not an FBO, we may use glCopyTexImage so we
// need to make sure the layer does not extend outside the bounds