Skip to content

Commit

Permalink
Disable blending when rendering tools in the inventory. It shouldn't …
Browse files Browse the repository at this point in the history
…be necessary and caused issues with GUIs
  • Loading branch information
bonii-xx committed Feb 21, 2015
1 parent 075b769 commit 8074abc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/tconstruct/client/FlexibleToolRenderer.java
Expand Up @@ -228,7 +228,7 @@ public void renderInventory(int count, IIcon[] icons, ItemStack item)
GL11.glDisable(GL11.GL_LIGHTING);
GL11.glEnable(GL11.GL_ALPHA_TEST);
GL11.glAlphaFunc(GL11.GL_GREATER, 0.5F);
GL11.glDisable(GL11.GL_BLEND);
//GL11.glDisable(GL11.GL_BLEND);

tess.startDrawingQuads();

Expand All @@ -249,7 +249,7 @@ public void renderInventory(int count, IIcon[] icons, ItemStack item)
}
tess.draw();

GL11.glEnable(GL11.GL_BLEND);
//GL11.glEnable(GL11.GL_BLEND);
GL11.glDisable(GL11.GL_ALPHA_TEST);
GL11.glAlphaFunc(GL11.GL_GREATER, 0.1F);
GL11.glEnable(GL11.GL_LIGHTING);
Expand Down

0 comments on commit 8074abc

Please sign in to comment.