1.21.11: Fix RenderScope

This commit is contained in:
2026-04-08 09:18:08 +02:00
parent e28051a109
commit c5b6a858e1
@@ -207,7 +207,7 @@ public class RenderScopeImpl implements RenderScope {
this.state.addSimpleElement(new TexturedQuadGuiElementRenderState( this.state.addSimpleElement(new TexturedQuadGuiElementRenderState(
RenderPipelines.GUI_TEXTURED, RenderPipelines.GUI_TEXTURED,
TextureSetup.withoutGlTexture(gpuTextureView), TextureSetup.method_70900(gpuTextureView),
new Matrix3x2f(this.matrices.stack), new Matrix3x2f(this.matrices.stack),
x1, y1, x2, y2, u1, u2, v1, v2, color, x1, y1, x2, y2, u1, u2, v1, v2, color,
this.scissorStack.peekLast())); this.scissorStack.peekLast()));
@@ -216,7 +216,7 @@ public class RenderScopeImpl implements RenderScope {
// Scissor management // Scissor management
@Override @Override
public void enableScissor(int x1, int y1, int x2, int y2) { public void enableScissor(int x1, int y1, int x2, int y2) {
ScreenRect rect = new ScreenRect(x1, y1, x2 - x1, y2 - y1).transform(this.matrices.stack); ScreenRect rect = new ScreenRect(x1, y1, x2 - x1, y2 - y1).method_65185(this.matrices.stack);
scissorStack.push(rect); scissorStack.push(rect);
} }