Commit 9076fba7ad1f8c4bde69169d3a91d7fa77a34d21

  • avatar
  • Samuel Rødal <sroedal @trol…ech.com>
  • Fri Sep 18 13:47:10 CEST 2009
Fixed bug in GL pixmap backend (causing missing rendering in lance).

Since copyBackFromRenderFbo() manually changes the framebuffer object
binding, we also need to update the context's current_fbo member.

Reviewed-by: Kim
  
486486 GL_COLOR_BUFFER_BIT,
487487 GL_NEAREST);
488488
489 if (keepCurrentFboBound)
489 if (keepCurrentFboBound) {
490490 glBindFramebuffer(GL_FRAMEBUFFER_EXT, ctx->d_ptr->current_fbo);
491 } else {
492 glBindFramebuffer(GL_DRAW_FRAMEBUFFER_EXT, m_renderFbo->handle());
493 ctx->d_ptr->current_fbo = m_renderFbo->handle();
494 }
491495}
492496
493497bool QGLPixmapData::useFramebufferObjects()