mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-18 21:13:02 +01:00
GL Renderer, OSX, no swap chain: Bind back buffer fbo ready for NSOpenGLContext flushBuffer (#1056)
This commit is contained in:
committed by
Branimir Karadžić
parent
65f2b998ff
commit
8a37dd8e87
@@ -2290,6 +2290,9 @@ namespace bgfx { namespace gl
|
||||
m_ovr.flip();
|
||||
m_ovr.swap(_hmd);
|
||||
|
||||
// Ensure the back buffer is bound as the source of the flip
|
||||
GL_CHECK(glBindFramebuffer(GL_FRAMEBUFFER, m_backBufferFbo));
|
||||
|
||||
// need to swap GL render context even if OVR is enabled to get
|
||||
// the mirror texture in the output
|
||||
m_glctx.swap();
|
||||
|
||||
Reference in New Issue
Block a user