GuiSeppukuMainMenu: Fix alpha bugs

This commit is contained in:
noil 2021-01-19 21:42:45 -05:00
parent 2fb81276df
commit 724b054dee
1 changed files with 4 additions and 4 deletions

View File

@ -197,15 +197,15 @@ public final class GuiSeppukuMainMenu extends GuiScreen {
this.drawDefaultBackground();
final ScaledResolution res = new ScaledResolution(mc);
// draw particle system
if (this.particleSystem != null)
this.particleSystem.render(mouseX, mouseY);
// begin gl states
GlStateManager.enableBlend();
GlStateManager.enableAlpha();
GlStateManager.tryBlendFuncSeparate(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, 1, 0);
// draw particle system
if (this.particleSystem != null)
this.particleSystem.render(mouseX, mouseY);
// draw logo
this.seppukuLogo.bind();
this.seppukuLogo.render((res.getScaledWidth() / 2.0f) - 120, (res.getScaledHeight() / 8.0f), 240, 38);