diff options
author | CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> | 2024-05-13 23:50:03 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-13 15:50:03 +0200 |
commit | 4a2b33c457e253faba78baa489be16778032281a (patch) | |
tree | e789c351a270ff0bbfebb1464b9d7cf5eb1183f3 /src/main/java/at/hannibal2/skyhanni/data/TitleManager.kt | |
parent | 04577ecd59699e7f9408430ff23a3cc2db81a546 (diff) | |
download | skyhanni-4a2b33c457e253faba78baa489be16778032281a.tar.gz skyhanni-4a2b33c457e253faba78baa489be16778032281a.tar.bz2 skyhanni-4a2b33c457e253faba78baa489be16778032281a.zip |
use some more gl constants (#1783)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/data/TitleManager.kt')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/data/TitleManager.kt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/TitleManager.kt b/src/main/java/at/hannibal2/skyhanni/data/TitleManager.kt index a2652404f..af3683402 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/TitleManager.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/TitleManager.kt @@ -9,6 +9,7 @@ import net.minecraft.client.Minecraft import net.minecraft.client.gui.ScaledResolution import net.minecraft.client.renderer.GlStateManager import net.minecraftforge.fml.common.eventhandler.SubscribeEvent +import org.lwjgl.opengl.GL11 import kotlin.time.Duration import kotlin.time.Duration.Companion.milliseconds import kotlin.time.Duration.Companion.seconds @@ -66,7 +67,7 @@ class TitleManager { val height = scaledResolution.scaledHeight GlStateManager.enableBlend() - GlStateManager.tryBlendFuncSeparate(770, 771, 1, 0) + GlStateManager.tryBlendFuncSeparate(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA, 1, 0) val renderer = Minecraft.getMinecraft().fontRendererObj GlStateManager.pushMatrix() |