From 53af38bb8310c3a7b163d4276faff23ee31e579e Mon Sep 17 00:00:00 2001 From: PpluX Date: Wed, 14 Feb 2018 18:24:30 +0100 Subject: [PATCH] fix ios11 black screen when using postprocess (#1333) ios11 requires to flush transactions before creating a new framebuffer for full screen postproceses. --- src/glcontext_eagl.mm | 1 + 1 file changed, 1 insertion(+) diff --git a/src/glcontext_eagl.mm b/src/glcontext_eagl.mm index b698314fc..a9e49a3a8 100644 --- a/src/glcontext_eagl.mm +++ b/src/glcontext_eagl.mm @@ -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) );