Use correct constructor for 1.21

This commit is contained in:
Moulberry committed 2025-03-13 21:48:21 +08:00
1 parent e895b079f8
commit 02974b2ec6
1 file changed
+2 -2
@@ -105,10 +105,10 @@ public abstract class MixinLevelRenderer {
RenderSystem.assertOnRenderThread();
if (this.roundAlphaBuffer == null) {
this.roundAlphaBuffer = new TextureTarget(main.width, main.height, false);
this.roundAlphaBuffer = new TextureTarget(main.width, main.height, false, Minecraft.ON_OSX);
} else if (this.roundAlphaBuffer.width != main.width || this.roundAlphaBuffer.height != main.height) {
this.roundAlphaBuffer.destroyBuffers();
this.roundAlphaBuffer = new TextureTarget(main.width, main.height, false);
this.roundAlphaBuffer = new TextureTarget(main.width, main.height, false, Minecraft.ON_OSX);
}
this.roundAlphaBuffer.bindWrite(true);