From e035a9651e1a7ea85b0de88e48988820bdf0e6d5 Mon Sep 17 00:00:00 2001 From: Sollace Date: Sat, 28 Jul 2018 14:16:54 +0200 Subject: [PATCH] Oh now _that's_ what that was for! --- .../com/voxelmodpack/hdskins/gui/RenderPlayerModel.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/hdskins/java/com/voxelmodpack/hdskins/gui/RenderPlayerModel.java b/src/hdskins/java/com/voxelmodpack/hdskins/gui/RenderPlayerModel.java index 93fcbf53..17a0d5af 100644 --- a/src/hdskins/java/com/voxelmodpack/hdskins/gui/RenderPlayerModel.java +++ b/src/hdskins/java/com/voxelmodpack/hdskins/gui/RenderPlayerModel.java @@ -19,6 +19,8 @@ import com.mojang.authlib.minecraft.MinecraftProfileTexture.Type; import java.util.Set; +import org.lwjgl.opengl.GL11; + import static net.minecraft.client.renderer.GlStateManager.*; public class RenderPlayerModel extends RenderLivingBase { @@ -106,6 +108,8 @@ public class RenderPlayerModel extends RenderLiving double offset = entity.getYOffset() + entity.posY + 0.01; + GL11.glPushAttrib(GL11.GL_ALL_ATTRIB_BITS); + pushMatrix(); enableBlend(); color(1, 1, 1, 0.3F); @@ -123,5 +127,7 @@ public class RenderPlayerModel extends RenderLiving super.doRender(entity, x, y, z, entityYaw, partialTicks); popMatrix(); + + popAttrib(); } }