gl4es: Minecraft JE framebuffer gave error on iOS

Hi. So after found a JVM for jailbroken iOS, I went to attempt get LWJGL3 and Minecraft working on. The project is mostly based on PojavLauncher Android, but with EGL replacement to EAGL. I had to modify GL4ES to get it built as dynamic library. Almost everything works, until Minecraft starting initialize framebuffer. crash-2021-01-05_06.36.26-client.txt As on crash report, glCheckFramebufferStatus() returned GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT. I don’t know what was wrong with my code. I tried these ways:

  • Use GLKView.
  • Use GLKView with pre-init framebuffer.
  • Use GLKView and changed LIBGL_FB to 1 and 2.
  • Use GLES context created by JavaFX.

I’m very new to iOS and coding that app without a Mac OS X device, so debugging is quite hard. I could not find a GLES debug tool for jailbroken device. I don’t know what to do. May I modify to enable GL commands logging? Could you try to fix it? Thanks in advance.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 32 (32 by maintainers)

Most upvoted comments

I could not call that, some symbols could not be located. At the first try to compile, I got aliases are not supported on Darwin so I changed to #pragma weak but symbols were not get exported…

(for GL calls I had to modify LWJGL to redirect to gl4es_gl* as workaround).

So, I found out that Darwin has __DARWIN_ALIAS macro, which is attribute alias solution. Can you check it? https://opensource.apple.com/source/xnu/xnu-1228.15.4/bsd/sys/cdefs.h @ptitSeb