mirror of https://github.com/qt/qtdatavis3d.git
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:
parent
7b2cd00ce8
commit
4830e55e98
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Reference in New Issue