Branimir Karadžić 10 gadi atpakaļ
vecāks
revīzija
203991b248
3 mainītis faili ar 5 papildinājumiem un 0 dzēšanām
  1. 2 0
      src/glcontext_eagl.mm
  2. 2 0
      src/glcontext_nsgl.mm
  3. 1 0
      src/renderer_mtl.mm

+ 2 - 0
src/glcontext_eagl.mm

@@ -66,6 +66,8 @@ namespace bgfx { namespace gl
 			);
 
 		import();
+
+		g_internalData.context = m_context;
 	}
 
 	void GlContext::destroy()

+ 2 - 0
src/glcontext_nsgl.mm

@@ -115,6 +115,8 @@ namespace bgfx { namespace gl
 		}
 
 		import();
+
+		g_internalData.context = m_context;
 	}
 
 	void GlContext::destroy()

+ 1 - 0
src/renderer_mtl.mm

@@ -495,6 +495,7 @@ namespace bgfx { namespace mtl
 
 			m_occlusionQuery.preReset();
 
+			g_internalData.context = m_device;
 			return true;
 		}