mirror of
https://github.com/GTNewHorizons/Angelica.git
synced 2026-11-25 14:44:28 +00:00
Fix load -> enter -> leave: panorama rendering, cleanup state & fix test (#1467)
This commit is contained in:
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();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user