Skip to content

Commit 1e8dc75

Browse files
committed
Maybe fixed untransparent rendering of other elements Part2
1 parent f05b1af commit 1e8dc75

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/main/java/at/hannibal2/skyhanni/features/misc/customscoreboard/RenderBackground.kt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ class RenderBackground {
5454
val textureLocation = ResourceLocation("skyhanni", "scoreboard.png")
5555
val rareTextureLocation = ResourceLocation("skyhanni", "rareScoreboardBackground.png")
5656

57+
// Save the current color state
58+
GlStateManager.pushMatrix();
59+
GlStateManager.pushAttrib();
60+
5761
GlStateManager.color(1f,1f,1f, 1f)
5862

5963
if (config.backgroundConfig.enabled && config.backgroundConfig.useCustomBackgroundImage) {
@@ -103,6 +107,8 @@ class RenderBackground {
103107
)
104108
}
105109

106-
GlStateManager.resetColor()
110+
// Restore the original color state
111+
GlStateManager.popMatrix();
112+
GlStateManager.popAttrib();
107113
}
108114
}

0 commit comments

Comments
 (0)