Merge "Draw in the correct FBO after invoking a GL functor Bug #5650514" into ics-mr1

This commit is contained in:
Romain Guy
2011-11-22 12:33:17 -08:00
committed by Android (Google) Code Review
2 changed files with 3 additions and 2 deletions

View File

@@ -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;

View File

@@ -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;