aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJuuz <6596629+Juuxel@users.noreply.github.com>2023-09-27 14:49:45 +0300
committerJuuz <6596629+Juuxel@users.noreply.github.com>2023-09-27 14:49:45 +0300
commitf719ee5f3243d8a0e436181a2b23a2e35731ae67 (patch)
tree857f16f432785c32aed3983b0382f422fde1dbd1 /src
parenta34752e2ee0e15a7a4feeae199f2e05998832450 (diff)
downloadLibGui-f719ee5f3243d8a0e436181a2b23a2e35731ae67.tar.gz
LibGui-f719ee5f3243d8a0e436181a2b23a2e35731ae67.tar.bz2
LibGui-f719ee5f3243d8a0e436181a2b23a2e35731ae67.zip
ScreenDrawing: Fix shader color escaping from texturedRect
Diffstat (limited to 'src')
-rw-r--r--src/main/java/io/github/cottonmc/cotton/gui/client/ScreenDrawing.java1
1 files changed, 1 insertions, 0 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 7431597..9682766 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
@@ -194,6 +194,7 @@ public class ScreenDrawing {
buffer.vertex(model, x, y, 0).texture(u1, v1).next();
BufferRenderer.drawWithGlobalProgram(buffer.end());
RenderSystem.disableBlend();
+ RenderSystem.setShaderColor(1, 1, 1, 1);
}
/**