Skip to content

Commit

Permalink
Hopefully fixed optifine compat *sigh* close #36
Browse files Browse the repository at this point in the history
  • Loading branch information
Buuz135 committed Jul 29, 2023
1 parent 001e3ed commit 6236cb0
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,7 @@ public static RenderType createRenderType(Emoji emoji) {
.setTransparencyState(new RenderStateShard.TransparencyStateShard("translucent_transparency", () -> {
RenderSystem.enableBlend();
RenderSystem.blendFuncSeparate(GlStateManager.SourceFactor.SRC_ALPHA, GlStateManager.DestFactor.ONE_MINUS_SRC_ALPHA, GlStateManager.SourceFactor.ONE, GlStateManager.DestFactor.ONE_MINUS_SRC_ALPHA);
GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_MIN_FILTER, GL_LINEAR);
GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_MAG_FILTER, GL_LINEAR);
}, () -> {
GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_MAG_FILTER, GL_NEAREST);
GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_MIN_FILTER, GL_NEAREST);
RenderSystem.disableBlend();
RenderSystem.defaultBlendFunc();
}))/*.setAlphaState(new RenderStateShard.AlphaStateShard(0.003921569F))*/.setLightmapState(new RenderStateShard.LightmapStateShard(true)).createCompositeState(false);
Expand Down

0 comments on commit 6236cb0

Please sign in to comment.