GuiSeppukuMainMenu: Fix alpha bugs
This commit is contained in:
parent
2fb81276df
commit
724b054dee
|
@ -197,15 +197,15 @@ public final class GuiSeppukuMainMenu extends GuiScreen {
|
||||||
this.drawDefaultBackground();
|
this.drawDefaultBackground();
|
||||||
final ScaledResolution res = new ScaledResolution(mc);
|
final ScaledResolution res = new ScaledResolution(mc);
|
||||||
|
|
||||||
|
// draw particle system
|
||||||
|
if (this.particleSystem != null)
|
||||||
|
this.particleSystem.render(mouseX, mouseY);
|
||||||
|
|
||||||
// begin gl states
|
// begin gl states
|
||||||
GlStateManager.enableBlend();
|
GlStateManager.enableBlend();
|
||||||
GlStateManager.enableAlpha();
|
GlStateManager.enableAlpha();
|
||||||
GlStateManager.tryBlendFuncSeparate(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, 1, 0);
|
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
|
// draw logo
|
||||||
this.seppukuLogo.bind();
|
this.seppukuLogo.bind();
|
||||||
this.seppukuLogo.render((res.getScaledWidth() / 2.0f) - 120, (res.getScaledHeight() / 8.0f), 240, 38);
|
this.seppukuLogo.render((res.getScaledWidth() / 2.0f) - 120, (res.getScaledHeight() / 8.0f), 240, 38);
|
||||||
|
|
Loading…
Reference in New Issue