From 68924a2c1fa310556797ab68807b83e6f534b8fa Mon Sep 17 00:00:00 2001 From: Juuxel <6596629+Juuxel@users.noreply.github.com> Date: Wed, 23 Dec 2020 13:40:04 +0200 Subject: Fix labeled slider rendering Changed the MatrixStack translation to direct GL translation via RenderSystem. I've already fixed this bug in the 4.0 branch by using MatrixStacks for texture rendering, but that won't work here. --- src/main/java/io/github/cottonmc/cotton/gui/widget/WLabeledSlider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/main/java/io/github/cottonmc/cotton/gui/widget/WLabeledSlider.java b/src/main/java/io/github/cottonmc/cotton/gui/widget/WLabeledSlider.java index e7f7e3a..0c1a510 100644 --- a/src/main/java/io/github/cottonmc/cotton/gui/widget/WLabeledSlider.java +++ b/src/main/java/io/github/cottonmc/cotton/gui/widget/WLabeledSlider.java @@ -167,7 +167,7 @@ public class WLabeledSlider extends WAbstractSlider { int rotMouseY = axis == Axis.HORIZONTAL ? mouseY : mouseX; RenderSystem.pushMatrix(); - matrices.translate(x, y, 0); + RenderSystem.translatef(x, y, 0); if (axis == Axis.VERTICAL) { RenderSystem.translatef(0, height, 0); RenderSystem.rotatef(270, 0, 0, 1); -- cgit