diff --git a/gradle.properties b/gradle.properties index 9ffb45fdc..c8d4a260b 100644 --- a/gradle.properties +++ b/gradle.properties @@ -12,7 +12,7 @@ fabric_version = 0.76.0+1.19.2 # build dependency versions loom_version = 1.1-SNAPSHOT cursegradle_version = 1.4.0 -parchment_version = 2022.11.06 +parchment_version = 2022.11.27 use_parchment = true diff --git a/src/main/java/com/jozufozu/flywheel/core/model/ModelUtil.java b/src/main/java/com/jozufozu/flywheel/core/model/ModelUtil.java index b36d90c00..296245ad6 100644 --- a/src/main/java/com/jozufozu/flywheel/core/model/ModelUtil.java +++ b/src/main/java/com/jozufozu/flywheel/core/model/ModelUtil.java @@ -33,7 +33,9 @@ public class ModelUtil { unshadedBuffer.release(); } RenderedBuffer buffer = shadedBuilder.end(); - return new ShadeSeparatedBufferedData.NativeImpl(buffer.vertexBuffer(), buffer.indexBuffer(), buffer.drawState(), unshadedStartVertex); + ShadeSeparatedBufferedData bufferedData = new ShadeSeparatedBufferedData.NativeImpl(buffer.vertexBuffer(), buffer.indexBuffer(), buffer.drawState(), unshadedStartVertex); + buffer.release(); + return bufferedData; } public static ShadeSeparatedBufferedData getBufferedData(Bufferable bufferable) {