Skip to content

Commit 73fa922

Browse files
authored
GradientComponent: Fix blending not being enabled
Linear: EM-3177 GitHub: #164
1 parent 3d9eb1f commit 73fa922

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/kotlin/gg/essential/elementa/components/GradientComponent.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ open class GradientComponent constructor(
149149
startColor: Color, endColor: Color, direction: GradientDirection
150150
) {
151151
UGraphics.disableAlpha()
152+
UGraphics.enableBlend()
152153
UGraphics.tryBlendFuncSeparate(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA, GL11.GL_ONE, GL11.GL_ZERO)
153154
UGraphics.shadeModel(GL11.GL_SMOOTH)
154155

0 commit comments

Comments
 (0)