mirror of
https://github.com/barkeser2002/Tenet.git
synced 2026-09-25 07:20:02 +03:00
18 lines
552 B
Diff
18 lines
552 B
Diff
--- a/com/mojang/blaze3d/vertex/BufferBuilder.java
|
|
+++ b/com/mojang/blaze3d/vertex/BufferBuilder.java
|
|
@@ -459,4 +_,14 @@
|
|
this.sorting = p_277855_;
|
|
}
|
|
}
|
|
+
|
|
+ // Forge start
|
|
+ public void putBulkData(ByteBuffer buffer) {
|
|
+ ensureCapacity(buffer.limit() + this.format.getVertexSize());
|
|
+ this.buffer.position(this.nextElementByte);
|
|
+ this.buffer.put(buffer);
|
|
+ this.buffer.position(0);
|
|
+ this.vertices += buffer.limit() / this.format.getVertexSize();
|
|
+ this.nextElementByte += buffer.limit();
|
|
+ }
|
|
}
|