GLX: Set default context after swap chain destruction.

This commit is contained in:
Branimir Karadžić 2016-11-15 19:41:22 -08:00
parent afb7ec3d73
commit 4117e79e6c
1 changed files with 1 additions and 0 deletions

View File

@ -259,6 +259,7 @@ namespace bgfx { namespace gl
void GlContext::destroySwapChain(SwapChainGL* _swapChain)
{
BX_DELETE(g_allocator, _swapChain);
glXMakeCurrent( (::Display*)g_platformData.ndt, (::Window)g_platformData.nwh, m_context);
}
void GlContext::swap(SwapChainGL* _swapChain)