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:
PpluX 2018-02-14 18:24:30 +01:00 committed by Branimir Karadžić
parent c6b4ce512a
commit 53af38bb83

View File

@ -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) );