all repos — mgba @ 78acb25afce980b04a627ba4d3bb9aa9a930fa0c

mGBA Game Boy Advance Emulator

Qt: Fix regression with OpenGL deinitialization
Jeffrey Pfau jeffrey@endrift.com
Tue, 01 Dec 2015 21:31:02 -0800
commit

78acb25afce980b04a627ba4d3bb9aa9a930fa0c

parent

e0863dc708d4d16d4047adb000c4ee65ab4130ed

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

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

@@ -237,12 +237,17 @@ }

for (auto item : m_free) { delete[] item; } + m_gl->makeCurrent(); +#if defined(_WIN32) && defined(USE_EPOXY) + epoxy_handle_external_wglMakeCurrent(); +#endif #if !defined(_WIN32) || defined(USE_EPOXY) if (m_shader.passes) { GBAGLES2ShaderFree(&m_shader); } #endif m_backend->deinit(m_backend); + m_gl->doneCurrent(); delete m_backend; m_backend = nullptr; }