diff options
author | Juuxel <6596629+Juuxel@users.noreply.github.com> | 2020-12-23 13:40:04 +0200 |
---|---|---|
committer | Juuxel <6596629+Juuxel@users.noreply.github.com> | 2020-12-23 13:40:04 +0200 |
commit | 68924a2c1fa310556797ab68807b83e6f534b8fa (patch) | |
tree | 7a987828d246a72a7c7da12673348ac16d7dd9d6 | |
parent | 110a4db9f8c0530b8778e7290962b453e03b0bc1 (diff) | |
download | LibGui-68924a2c1fa310556797ab68807b83e6f534b8fa.tar.gz LibGui-68924a2c1fa310556797ab68807b83e6f534b8fa.tar.bz2 LibGui-68924a2c1fa310556797ab68807b83e6f534b8fa.zip |
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.
-rw-r--r-- | src/main/java/io/github/cottonmc/cotton/gui/widget/WLabeledSlider.java | 2 |
1 files changed, 1 insertions, 1 deletions
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); |