From 203991b248112d834c36c0cbf3cbda921e883523 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Wed, 13 Jan 2016 21:54:44 -0800 Subject: [PATCH] Cleanup. --- src/glcontext_eagl.mm | 2 ++ src/glcontext_nsgl.mm | 2 ++ src/renderer_mtl.mm | 1 + 3 files changed, 5 insertions(+) diff --git a/src/glcontext_eagl.mm b/src/glcontext_eagl.mm index 253a3122..544fe037 100644 --- a/src/glcontext_eagl.mm +++ b/src/glcontext_eagl.mm @@ -66,6 +66,8 @@ namespace bgfx { namespace gl ); import(); + + g_internalData.context = m_context; } void GlContext::destroy() diff --git a/src/glcontext_nsgl.mm b/src/glcontext_nsgl.mm index e7acb814..b20de537 100644 --- a/src/glcontext_nsgl.mm +++ b/src/glcontext_nsgl.mm @@ -115,6 +115,8 @@ namespace bgfx { namespace gl } import(); + + g_internalData.context = m_context; } void GlContext::destroy() diff --git a/src/renderer_mtl.mm b/src/renderer_mtl.mm index d192a9bb..43a5eb7b 100644 --- a/src/renderer_mtl.mm +++ b/src/renderer_mtl.mm @@ -495,6 +495,7 @@ namespace bgfx { namespace mtl m_occlusionQuery.preReset(); + g_internalData.context = m_device; return true; }