mirror of https://github.com/mgba-emu/mgba.git
Qt: Fix regression with OpenGL deinitialization
This commit is contained in:
parent
e0863dc708
commit
78acb25afc
|
@ -237,12 +237,17 @@ PainterGL::~PainterGL() {
|
|||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue