Sfoglia il codice sorgente

fix ios11 black screen when using postprocess (#1333)

ios11 requires to flush transactions before creating a new
framebuffer for full screen postproceses.
PpluX 7 anni fa
parent
commit
53af38bb83
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      src/glcontext_eagl.mm

+ 1 - 0
src/glcontext_eagl.mm

@@ -189,6 +189,7 @@ namespace bgfx { namespace gl
 
 
 		m_context = (void*)context;
 		m_context = (void*)context;
 		[EAGLContext setCurrentContext:context];
 		[EAGLContext setCurrentContext:context];
+		[CATransaction flush];
 
 
 		GL_CHECK(glGenFramebuffers(1, &m_fbo) );
 		GL_CHECK(glGenFramebuffers(1, &m_fbo) );
 		GL_CHECK(glBindFramebuffer(GL_FRAMEBUFFER, m_fbo) );
 		GL_CHECK(glBindFramebuffer(GL_FRAMEBUFFER, m_fbo) );