Fix warning 'QOpenGLContext::swapBuffers() called with non-exposed window, behavior is undefined'