|
|
@@ -88,13 +88,29 @@ namespace bgfx
|
|
|
[glContext setValues:&interval forParameter:NSOpenGLCPSwapInterval];
|
|
|
}
|
|
|
|
|
|
- void GlContext::swap()
|
|
|
+ SwapChainGL* GlContext::createSwapChain(void* /*_nwh*/)
|
|
|
{
|
|
|
+ BX_CHECK(false, "Shouldn't be called!");
|
|
|
+ return NULL;
|
|
|
+ }
|
|
|
+
|
|
|
+ void GlContext::destorySwapChain(SwapChainGL* /*_swapChain*/)
|
|
|
+ {
|
|
|
+ BX_CHECK(false, "Shouldn't be called!");
|
|
|
+ }
|
|
|
+
|
|
|
+ void GlContext::swap(SwapChainGL* _swapChain)
|
|
|
+ {
|
|
|
+ BX_CHECK(NULL == _swapChain, "Shouldn't be called!"); BX_UNUSED(_swapChain);
|
|
|
NSOpenGLContext* glContext = (NSOpenGLContext*)m_context;
|
|
|
[glContext makeCurrentContext];
|
|
|
[glContext flushBuffer];
|
|
|
}
|
|
|
|
|
|
+ void GlContext::makeCurrent(SwapChainGL* /*_swapChain*/)
|
|
|
+ {
|
|
|
+ }
|
|
|
+
|
|
|
void GlContext::import()
|
|
|
{
|
|
|
BX_TRACE("Import:");
|