diff --git a/src/glcontext_nsgl.mm b/src/glcontext_nsgl.mm index d39f7da3..fee4bed2 100644 --- a/src/glcontext_nsgl.mm +++ b/src/glcontext_nsgl.mm @@ -176,6 +176,8 @@ namespace bgfx { namespace gl { if (NULL == _swapChain) { + NSOpenGLContext* glContext = (NSOpenGLContext*)m_context; + [glContext makeCurrentContext]; } else {