From b6f9b190093f59f1161f66f76f643feaaaea7c36 Mon Sep 17 00:00:00 2001 From: Xiaro <62033805+Xiaro@users.noreply.github.com> Date: Fri, 8 Jan 2021 19:42:50 -0500 Subject: [PATCH] [fix] Hud texts turns into blocks caused by PlayerModel --- .../zeroeightsix/kami/gui/hudgui/elements/player/PlayerModel.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/me/zeroeightsix/kami/gui/hudgui/elements/player/PlayerModel.kt b/src/main/java/me/zeroeightsix/kami/gui/hudgui/elements/player/PlayerModel.kt index 85421ac78..79b7b18a3 100644 --- a/src/main/java/me/zeroeightsix/kami/gui/hudgui/elements/player/PlayerModel.kt +++ b/src/main/java/me/zeroeightsix/kami/gui/hudgui/elements/player/PlayerModel.kt @@ -52,6 +52,8 @@ object PlayerModel : HudElement( GlStateUtils.depth(false) GlStateUtils.texture2d(true) GlStateUtils.blend(true) + GlStateManager.tryBlendFuncSeparate(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA) + GlStateManager.disableColorMaterial() glPopMatrix() }