Fix load -> enter -> leave: panorama rendering, cleanup state & fix test (#1467)

This commit is contained in:
Jason Mitchell authored and GitHub committed 2026-03-06 19:01:43 -08:00
1 parent 938a6bda90
commit 9107ea9ae5
2 files changed
+9 -1

No files matched your search

@@ -234,6 +234,11 @@ public class PanoramaRenderer {
public void renderSkybox(int panoramaTimer, float partialTicks, ResourceLocation[] panoramaPaths, Minecraft mc, int screenWidth, int screenHeight, float zLevel) {
init();
GLStateManager.glColorMask(true, true, true, true);
GLStateManager.disableCull();
GLStateManager.disableScissorTest();
GLStateManager.disableDepthTest();
mc.getFramebuffer().unbindFramebuffer();
GL11.glViewport(0, 0, FBO_SIZE, FBO_SIZE);
GL30.glBindFramebuffer(GL30.GL_FRAMEBUFFER, fboA);
@@ -272,6 +277,9 @@ public class PanoramaRenderer {
GL30.glBindVertexArray(0);
blitProgram.unbind();
GLStateManager.enableDepthTest();
GLStateManager.enableCull();
GLStateManager.enableBlend();
}