mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2025-02-17 20:31:57 -05:00
Fixed iOS build.
This commit is contained in:
parent
96e07d3929
commit
ba1c5353e6
3 changed files with 18 additions and 3 deletions
|
@ -22,7 +22,6 @@ namespace bgfx
|
||||||
void create(uint32_t _width, uint32_t _height);
|
void create(uint32_t _width, uint32_t _height);
|
||||||
void destroy();
|
void destroy();
|
||||||
void resize(uint32_t _width, uint32_t _height, bool _vsync);
|
void resize(uint32_t _width, uint32_t _height, bool _vsync);
|
||||||
void swap();
|
|
||||||
|
|
||||||
SwapChainGL* createSwapChain(void* _nwh);
|
SwapChainGL* createSwapChain(void* _nwh);
|
||||||
void destorySwapChain(SwapChainGL* _swapChain);
|
void destorySwapChain(SwapChainGL* _swapChain);
|
||||||
|
|
|
@ -91,13 +91,29 @@ namespace bgfx
|
||||||
BX_TRACE("resize context");
|
BX_TRACE("resize context");
|
||||||
}
|
}
|
||||||
|
|
||||||
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);
|
||||||
GL_CHECK(glBindRenderbuffer(GL_RENDERBUFFER, m_colorRbo) );
|
GL_CHECK(glBindRenderbuffer(GL_RENDERBUFFER, m_colorRbo) );
|
||||||
EAGLContext* context = (EAGLContext*)m_context;
|
EAGLContext* context = (EAGLContext*)m_context;
|
||||||
[context presentRenderbuffer:GL_RENDERBUFFER];
|
[context presentRenderbuffer:GL_RENDERBUFFER];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void GlContext::makeCurrent(SwapChainGL* /*_swapChain*/)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
void GlContext::import()
|
void GlContext::import()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
|
@ -1797,7 +1797,7 @@ namespace bgfx
|
||||||
|
|
||||||
#if BX_PLATFORM_IOS
|
#if BX_PLATFORM_IOS
|
||||||
// iOS: need to figure out how to deal with FBO created by context.
|
// iOS: need to figure out how to deal with FBO created by context.
|
||||||
m_backBufferFbo = m_msaaBackBufferFbo = m_glctx.getFbo()
|
m_backBufferFbo = m_msaaBackBufferFbo = m_glctx.getFbo();
|
||||||
#endif // BX_PLATFORM_IOS
|
#endif // BX_PLATFORM_IOS
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue