From f719ee5f3243d8a0e436181a2b23a2e35731ae67 Mon Sep 17 00:00:00 2001 From: Juuz <6596629+Juuxel@users.noreply.github.com> Date: Wed, 27 Sep 2023 14:49:45 +0300 Subject: ScreenDrawing: Fix shader color escaping from texturedRect --- src/main/java/io/github/cottonmc/cotton/gui/client/ScreenDrawing.java | 1 + 1 file changed, 1 insertion(+) 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); } /** -- cgit