all repos — mgba @ d4c6472101237c51dbc547b6843a5c589f294ed4

mGBA Game Boy Advance Emulator

Qt: Fix doneCurrent location
Vicki Pfau vi@endrift.com
Wed, 22 May 2019 20:38:01 -0700
commit

d4c6472101237c51dbc547b6843a5c589f294ed4

parent

5cc4c752e59bdedb40feb64b9818d3d5baac6cd8

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/platform/qt/DisplayGL.cppsrc/platform/qt/DisplayGL.cpp

@@ -264,8 +264,8 @@ PainterGL* painter = static_cast<PainterGL*>(v->user);

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();