Qt: Fix regression with OpenGL deinitialization
Jeffrey Pfau jeffrey@endrift.com
Tue, 01 Dec 2015 21:31:02 -0800
1 files changed,
5 insertions(+),
0 deletions(-)
jump to
M
src/platform/qt/DisplayGL.cpp
→
src/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; }