Browse Source

Merge pull request #440 from meshula/master

Fix for Context not bound on OSX 10.10.3 #439
Branimir Karadžić 10 years ago
parent
commit
af5b3592d9
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/glcontext_nsgl.mm

+ 2 - 0
src/glcontext_nsgl.mm

@@ -176,6 +176,8 @@ namespace bgfx { namespace gl
 	{
 	{
 		if (NULL == _swapChain)
 		if (NULL == _swapChain)
 		{
 		{
+			NSOpenGLContext* glContext = (NSOpenGLContext*)m_context;
+			[glContext makeCurrentContext];
 		}
 		}
 		else
 		else
 		{
 		{