Explorar el Código

fix ios11 black screen when using postprocess (#1333)

ios11 requires to flush transactions before creating a new
framebuffer for full screen postproceses.
PpluX hace 7 años
padre
commit
53af38bb83
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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;
 		[EAGLContext setCurrentContext:context];
+		[CATransaction flush];
 
 		GL_CHECK(glGenFramebuffers(1, &m_fbo) );
 		GL_CHECK(glBindFramebuffer(GL_FRAMEBUFFER, m_fbo) );