From 029f56da57c607a120d8442c2eeb48b9a2fad61e Mon Sep 17 00:00:00 2001 From: JozsefA Date: Wed, 6 Jan 2021 13:02:57 -0800 Subject: [PATCH] maybe fix held item rendering --- .../foundation/utility/render/FastKineticRenderer.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/simibubi/create/foundation/utility/render/FastKineticRenderer.java b/src/main/java/com/simibubi/create/foundation/utility/render/FastKineticRenderer.java index 81773a852..1ee9e3f35 100644 --- a/src/main/java/com/simibubi/create/foundation/utility/render/FastKineticRenderer.java +++ b/src/main/java/com/simibubi/create/foundation/utility/render/FastKineticRenderer.java @@ -84,6 +84,7 @@ public class FastKineticRenderer { GL13.glActiveTexture(GL40.GL_TEXTURE0); GL11.glBindTexture(GL11.GL_TEXTURE_2D, blockAtlasTexture.getGlTextureId()); + blockAtlasTexture.setBlurMipmap(false, true); GL13.glActiveTexture(GL40.GL_TEXTURE0 + 1); GL11.glBindTexture(GL11.GL_TEXTURE_2D, lightTexture.getGlTextureId()); @@ -129,10 +130,10 @@ public class FastKineticRenderer { ShaderHelper.releaseShader(); - GL40.glActiveTexture(GL40.GL_TEXTURE0 + 1); - GL40.glBindTexture(GL11.GL_TEXTURE_2D, 0); - GL40.glActiveTexture(GL40.GL_TEXTURE0); - GL40.glBindTexture(GL11.GL_TEXTURE_2D, 0); + GL13.glActiveTexture(GL40.GL_TEXTURE0 + 1); + GL11.glBindTexture(GL11.GL_TEXTURE_2D, 0); + GL13.glActiveTexture(GL40.GL_TEXTURE0); + blockAtlasTexture.restoreLastBlurMipmap(); RenderSystem.disableCull(); RenderSystem.disableBlend();