diff options
author | Romain Guy <romainguy@google.com> | 2011-11-22 12:42:06 -0800 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2011-11-22 12:42:06 -0800 |
commit | c28e574037b2bfc8c2ea24593299aa20ae9078f8 (patch) | |
tree | 38a75bdcc25887e4c9f2c640227fce4d2635079a | |
parent | 0ce49783083bf81cc1ea812e029fc94e1625a8fd (diff) | |
parent | a2fabf4a109d46f99ff7370aa05e48c1708c2838 (diff) | |
download | frameworks_base-c28e574037b2bfc8c2ea24593299aa20ae9078f8.zip frameworks_base-c28e574037b2bfc8c2ea24593299aa20ae9078f8.tar.gz frameworks_base-c28e574037b2bfc8c2ea24593299aa20ae9078f8.tar.bz2 |
am a2fabf4a: am 303a0695: Merge "Draw in the correct FBO after invoking a GL functor Bug #5650514" into ics-mr1
* commit 'a2fabf4a109d46f99ff7370aa05e48c1708c2838':
Draw in the correct FBO after invoking a GL functor Bug #5650514
-rw-r--r-- | libs/hwui/OpenGLRenderer.cpp | 2 | ||||
-rw-r--r-- | libs/hwui/Snapshot.h | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/libs/hwui/OpenGLRenderer.cpp b/libs/hwui/OpenGLRenderer.cpp index 70f1b7a..0b5262d 100644 --- a/libs/hwui/OpenGLRenderer.cpp +++ b/libs/hwui/OpenGLRenderer.cpp @@ -208,7 +208,7 @@ void OpenGLRenderer::resume() { glDisable(GL_DITHER); - glBindFramebuffer(GL_FRAMEBUFFER, getTargetFbo()); + glBindFramebuffer(GL_FRAMEBUFFER, mSnapshot->fbo); glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0); mCaches.blend = true; diff --git a/libs/hwui/Snapshot.h b/libs/hwui/Snapshot.h index d51154d..aff7b93 100644 --- a/libs/hwui/Snapshot.h +++ b/libs/hwui/Snapshot.h @@ -213,7 +213,8 @@ public: Layer* layer; /** - * Only set when the flag kFlagIsFboLayer is set. + * Target FBO used for rendering. Set to 0 when rendering directly + * into the framebuffer. */ GLuint fbo; |