mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-18 04:53:06 +01:00
fix ios11 black screen when using postprocess (#1333)
ios11 requires to flush transactions before creating a new framebuffer for full screen postproceses.
This commit is contained in:
@@ -189,6 +189,7 @@ namespace bgfx { namespace gl
|
||||
|
||||
m_context = (void*)context;
|
||||
[EAGLContext setCurrentContext:context];
|
||||
[CATransaction flush];
|
||||
|
||||
GL_CHECK(glGenFramebuffers(1, &m_fbo) );
|
||||
GL_CHECK(glBindFramebuffer(GL_FRAMEBUFFER, m_fbo) );
|
||||
|
||||
Reference in New Issue
Block a user