Remove all calls to GlStateManager.pushAttrib() and pullAttrib() and a few other tweaks to gl calls, fixes #12, #46 and #47

This commit is contained in:
Electroblob
2018-06-03 12:39:25 +01:00
parent ee6f0cfe70
commit d4579b9184
3 changed files with 2 additions and 10 deletions
@@ -80,8 +80,6 @@ public class GuiArcaneWorkbench extends GuiContainer {
@Override
public void drawGuiContainerBackgroundLayer(float f, int mouseX, int mouseY){
GlStateManager.pushAttrib();
GlStateManager.color(1F, 1F, 1F, 1F);
Minecraft.getMinecraft().renderEngine.bindTexture(texture);
@@ -152,8 +150,6 @@ public class GuiArcaneWorkbench extends GuiContainer {
// Fixes the bug that caused the slot hightlight to render opaque. I don't know why it works, it just works!
GlStateManager.disableBlend();
GlStateManager.enableAlpha();
GlStateManager.popAttrib();
}
@Override