Fix scissor state not including scissor bounds (fixes #556)

This caused the bounds to not be relaxed after e.g. lists and as such the scroll
bar and shadows would not render properly.
This commit is contained in:
Jonas Herzig
2021-08-15 17:25:23 +02:00
parent 82c7da8739
commit 88dece679d
2 changed files with 3 additions and 3 deletions

2
jGui

Submodule jGui updated: 391aadafbf...31bcfabe67

View File

@@ -34,7 +34,7 @@ import java.util.Optional;
import static com.replaymod.core.versions.MCVer.emitLine; import static com.replaymod.core.versions.MCVer.emitLine;
import static de.johni0702.minecraft.gui.versions.MCVer.popScissorState; import static de.johni0702.minecraft.gui.versions.MCVer.popScissorState;
import static de.johni0702.minecraft.gui.versions.MCVer.pushScissorState; import static de.johni0702.minecraft.gui.versions.MCVer.pushScissorState;
import static de.johni0702.minecraft.gui.versions.MCVer.setScissorState; import static de.johni0702.minecraft.gui.versions.MCVer.setScissorDisabled;
//#if MC>=11700 //#if MC>=11700
//$$ import com.mojang.blaze3d.systems.RenderSystem; //$$ import com.mojang.blaze3d.systems.RenderSystem;
@@ -176,7 +176,7 @@ public class GuiKeyframeTimeline extends AbstractGuiTimeline<GuiKeyframeTimeline
GL11.glDisable(GL11.GL_TEXTURE_2D); GL11.glDisable(GL11.GL_TEXTURE_2D);
//#endif //#endif
pushScissorState(); pushScissorState();
setScissorState(false); setScissorDisabled();
GL11.glLineWidth(2); GL11.glLineWidth(2);
tessellator.draw(); tessellator.draw();
popScissorState(); popScissorState();