Explorar o código

GLX: Set default context after swap chain destruction.

Branimir Karadžić %!s(int64=9) %!d(string=hai) anos
pai
achega
4117e79e6c
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/glcontext_glx.cpp

+ 1 - 0
src/glcontext_glx.cpp

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