Android: Remove EGL_BAD_SURFACE warning on suspension
When suspending the app we would destroy the surface twice, causing libEGL to output a warning on the second attempt. We would also destroy the surface before all references were released which is not 100% nice. We don't need to call the super class implementation at all, since we are managing the EGL surface ourselves. Change-Id: Ie1ab2ea8561d0018b5f16ac8cdf3296313a0a92c Reviewed-by: Christian Stromme <christian.stromme@digia.com>bb10
parent
5680484476
commit
ecbd3a70e4
|
|
@ -69,7 +69,6 @@ void QAndroidOpenGLPlatformWindow::invalidateSurface()
|
|||
{
|
||||
QWindowSystemInterface::handleExposeEvent(window(), QRegion()); // Obscure event
|
||||
QWindowSystemInterface::flushWindowSystemEvents();
|
||||
QEglFSWindow::invalidateSurface();
|
||||
|
||||
m_window = 0;
|
||||
m_surface = 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue