@@ -66,6 +66,8 @@ namespace bgfx { namespace gl
);
import();
+
+ g_internalData.context = m_context;
}
void GlContext::destroy()
@@ -115,6 +115,8 @@ namespace bgfx { namespace gl
@@ -495,6 +495,7 @@ namespace bgfx { namespace mtl
m_occlusionQuery.preReset();
+ g_internalData.context = m_device;
return true;