mirror of
https://github.com/GTNewHorizons/StorageDrawers.git
synced 2026-11-22 21:19:54 +00:00
Fix thaumcraft label flicker
This commit is contained in:
1 parent
ea80bc03dc
commit
db064d0cb6
2 files changed
+7
-2
No files matched your search
@@ -173,6 +173,9 @@ public class Thaumcraft extends IntegrationModule
|
||||
GL11.glEnable(GL11.GL_BLEND);
|
||||
GL11.glEnable(GL11.GL_ALPHA_TEST);
|
||||
|
||||
GL11.glEnable(GL11.GL_POLYGON_OFFSET_FILL);
|
||||
GL11.glPolygonOffset(-1f, -1);
|
||||
|
||||
ResourceLocation aspectResource = aspect.getImage();
|
||||
Minecraft.getMinecraft().renderEngine.bindTexture(aspectResource);
|
||||
|
||||
@@ -184,6 +187,8 @@ public class Thaumcraft extends IntegrationModule
|
||||
tessellator.addVertexWithUV(x, y, 0, 0, 0);
|
||||
tessellator.draw();
|
||||
|
||||
GL11.glDisable(GL11.GL_POLYGON_OFFSET_FILL);
|
||||
|
||||
GL11.glDisable(GL11.GL_ALPHA_TEST);
|
||||
GL11.glDisable(GL11.GL_BLEND);
|
||||
GL11.glEnable(GL11.GL_LIGHTING);
|
||||
|
||||
Reference in new issue
Block a user