Qt: Fix doneCurrent location

This commit is contained in:
Vicki Pfau 2019-05-22 20:38:01 -07:00
parent 5cc4c752e5
commit d4c6472101
1 changed files with 1 additions and 1 deletions

View File

@ -264,8 +264,8 @@ PainterGL::PainterGL(VideoProxy* proxy, QWindow* surface, QOpenGLContext* parent
if (!painter->m_gl->isValid()) {
return;
}
painter->m_gl->doneCurrent();
painter->m_gl->swapBuffers(painter->m_surface);
painter->m_gl->doneCurrent();
painter->m_gl->makeCurrent(painter->m_surface);
#if defined(_WIN32) && defined(USE_EPOXY)
epoxy_handle_external_wglMakeCurrent();