Fix flickering in android on some examples when zooming.

Change-Id: I3c9de6801430dc74c97fb6563ded6114befc6968
Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
This commit is contained in:
Miikka Heikkinen 2014-11-21 12:44:18 +02:00
parent 7b2cd00ce8
commit 4830e55e98
1 changed files with 5 additions and 0 deletions

View File

@ -1768,6 +1768,11 @@ void Abstract3DRenderer::queriedGraphPosition(const QMatrix4x4 &projectionViewMa
// Restore state
glEnable(GL_DITHER);
glCullFace(GL_BACK);
// Note: Zeroing the frame buffer before resetting it is a workaround for flickering that occurs
// during zoom in some environments.
glBindFramebuffer(GL_FRAMEBUFFER, 0);
glBindFramebuffer(GL_FRAMEBUFFER, defaultFboHandle);
glViewport(m_primarySubViewport.x(),
m_primarySubViewport.y(),