Fabric API

Fabric API

108M Downloads

WorldRenderEvents.AFTER_SETUP fires immediately before a glClear() preventing rendering in MC 1.21.3

jeseibel opened this issue ยท 6 comments

commented

Minecraft added a glClear call right after the WorldRenderEvents.AFTER_SETUP call is fired, preventing any rendering from happening during that event.

This is a blocking issue for Distant Horizons since the next event in the stack BEFORE_ENTITIES is fired too late in Minecraft's rendering pipeline (I need to draw into the skybox).
If this is expected behavior moving forward please let me know so I can look into other solutions, thanks!

Previous behavior: MC 1.21.1

Fabric API 0.107.0+1.21.1

Final Frame:
image

Render Doc OpenGL event list:
image


New behavior: MC 1.21.3

Fabric API 0.107.0+1.21.3

Final Frame:
image

Render Doc OpenGL event list:
image


Here are render doc snapshots of both Minecraft versions in case you want to look closer:
render dock snapshots.zip