QOpenGLContext window flickers on resize