aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJuuxel <6596629+Juuxel@users.noreply.github.com>2019-12-15 18:41:22 +0200
committerJuuxel <6596629+Juuxel@users.noreply.github.com>2019-12-15 18:41:22 +0200
commita24222da0c88df8907b3e2f9187a02293e864dfa (patch)
tree270bc2e8c3fd97d2fecc0d3cbc8055c2b61a6999 /src
parent20a10532885852a62ffe969ee7e2095a8f661f89 (diff)
downloadLibGui-a24222da0c88df8907b3e2f9187a02293e864dfa.tar.gz
LibGui-a24222da0c88df8907b3e2f9187a02293e864dfa.tar.bz2
LibGui-a24222da0c88df8907b3e2f9187a02293e864dfa.zip
Fix ScreenDrawing, verbump
Diffstat (limited to 'src')
-rw-r--r--src/main/java/io/github/cottonmc/cotton/gui/client/ScreenDrawing.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/io/github/cottonmc/cotton/gui/client/ScreenDrawing.java b/src/main/java/io/github/cottonmc/cotton/gui/client/ScreenDrawing.java
index e2b5c77..26cff28 100644
--- a/src/main/java/io/github/cottonmc/cotton/gui/client/ScreenDrawing.java
+++ b/src/main/java/io/github/cottonmc/cotton/gui/client/ScreenDrawing.java
@@ -35,7 +35,7 @@ public class ScreenDrawing {
BufferBuilder buffer = tessellator.getBuffer();
RenderSystem.enableBlend();
//GlStateManager.disableTexture2D();
- RenderSystem.blendFuncSeparate(GlStateManager.SourceFactor.SRC_ALPHA, GlStateManager.DestFactor.ONE_MINUS_SRC_ALPHA, GlStateManager.SourceFactor.ONE, GlStateManager.DestFactor.ZERO);
+ RenderSystem.blendFuncSeparate(GlStateManager.SrcFactor.SRC_ALPHA, GlStateManager.DstFactor.ONE_MINUS_SRC_ALPHA, GlStateManager.SrcFactor.ONE, GlStateManager.DstFactor.ZERO);
RenderSystem.color4f(r, g, b, 1.0f);
buffer.begin(GL11.GL_QUADS, VertexFormats.POSITION_TEXTURE); //I thought GL_QUADS was deprecated but okay, sure.
buffer.vertex(x, y + height, 0).texture(u1, v2).next();
@@ -82,7 +82,7 @@ public class ScreenDrawing {
BufferBuilder buffer = tessellator.getBuffer();
RenderSystem.enableBlend();
RenderSystem.disableTexture();
- RenderSystem.blendFuncSeparate(GlStateManager.SourceFactor.SRC_ALPHA, GlStateManager.DestFactor.ONE_MINUS_SRC_ALPHA, GlStateManager.SourceFactor.ONE, GlStateManager.DestFactor.ZERO);
+ RenderSystem.blendFuncSeparate(GlStateManager.SrcFactor.SRC_ALPHA, GlStateManager.DstFactor.ONE_MINUS_SRC_ALPHA, GlStateManager.SrcFactor.ONE, GlStateManager.DstFactor.ZERO);
RenderSystem.color4f(r, g, b, a);
buffer.begin(GL11.GL_QUADS, VertexFormats.POSITION); //I thought GL_QUADS was deprecated but okay, sure.
buffer.vertex(left, top + height, 0.0D).next();